15,896,207 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Fresher16 (Top 32 by date)
Fresher16
28-Nov-13 2:19am
View
Still the same problem. There's no problem in displaying the data but when we scroll down, the values are not getting updated / repainted. They are getting overwritten.
What should I do?
Fresher16
18-Jul-13 4:41am
View
Thanks Brydon...!! Installing the distributable package solved my problem..
Thanks a lot. One more thing to ask? Is there any way that to avoid this distributable package dependency?
Fresher16
2-Jul-13 5:06am
View
I am not able to find out what is going wrong?
Please help me out....!!!!!
Fresher16
27-May-13 4:55am
View
I have updated my question... Please have a look.
Fresher16
25-May-13 7:10am
View
K.. Thanks a lot Jochen for all your help...!!!
Fresher16
24-May-13 23:45pm
View
I tried but its not working.
Fresher16
24-May-13 0:36am
View
I am not using SetWindowText(). I have created a int value type variable for static text and I am assigning the slider position to that variable. The value is changing with the slider movement but its getting overwritten.
Fresher16
23-May-13 1:33am
View
Hey Jochen, I did the same way u suggested and its working...
Thanks a lot for all your help.
One last doubt: How to update the static control which I am using to display the run-time value. The value is changing but it gets overwritten on the previous value. How to solve this problem???
Fresher16
21-May-13 6:59am
View
I tried it before but the value is not changing.
Fresher16
21-May-13 0:31am
View
Thanks Jochen... My project is working now...!!!!
Can you tell me how to show the value of the slider at run time? I mean the value should change as the slider position is changed. I want to display the value above the slider control at run time?
Fresher16
20-May-13 0:19am
View
Can you please explain me in detail?
I tried with the OnHScroll() but nothing happened....
Fresher16
3-May-13 23:55pm
View
Coder Block and ThePhantomUpvoter please have a look on the code.
Fresher16
3-May-13 23:53pm
View
Here, CPrintHeadProfile class is associated with the Dialog (Style: Child)
Fresher16
3-May-13 23:51pm
View
void CDiagnostics::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, IDC_DIAGNOSETABS, m_DiagnoseTabCtrl);
}
BEGIN_MESSAGE_MAP(CDiagnostics, CDialogEx)
ON_BN_CLICKED(IDOK, &CDiagnostics::OnBnClickedOk)
ON_BN_CLICKED(IDCANCEL, &CDiagnostics::OnBnClickedCancel)
ON_WM_CTLCOLOR()
ON_WM_ERASEBKGND()
END_MESSAGE_MAP()
BOOL CDiagnostics::OnInitDialog()
{
CDialogEx::OnInitDialog();
SetBackgroundColor (g_DlgColor);
m_OK.m_bOverControl = FALSE;
m_Cancel.m_bOverControl = FALSE;
m_OK.EnableHot();
m_Cancel.EnableHot();
m_pPrintHeadProfile = new CPrintHeadProfile;
m_pPrintHeadProfile->Create(CPrintHeadProfile::IDD, &m_DiagnoseTabCtrl);
m_DiagnoseTabCtrl.AddTab(m_pPrintHeadProfile, "Print Head Profile", 0);
m_pPrintHeadProfile->m_pTabCtrl = &m_DiagnoseTabCtrl;
m_colorval = RGB(210,230,255);//RGB(122, 204, 200);
m_bkcolorval = RGB(122, 204, 200);//RGB(122, 204, 200);
DWORD dwFlags = 0;
if (m_bFlat)
dwFlags |= ETC_FLAT;
if (m_bColor)
dwFlags |= ETC_COLOR;
if (m_bSelection)
dwFlags |= ETC_SELECTION;
if (m_bGradient)
dwFlags |= ETC_GRADIENT;
if (m_bBackTabs)
dwFlags |= ETC_BACKTABS;
m_DiagnoseTabCtrl.SetBkgndColor(BKCOLOR);
m_DiagnoseTabCtrl.EnableDraw(m_bFlat ? BTC_ALL : dwFlags ? BTC_TABS : BTC_NONE);
CConfigTabCtrl::EnableCustomLook(dwFlags | m_bBackColor, dwFlags);
Fresher16
3-May-13 3:29am
View
How to create a graph? I mean I have never done it before and I am new to MFC. can you help me out?
Fresher16
3-May-13 3:27am
View
Properties of Tab Control are as follows:
Transparent: TRUE.
Visible: TRUE.
Multiline: TRUE.
Owner Draw Fixed: TRUE
Fresher16
18-Mar-13 6:50am
View
Thanks Matthew.... They are useful articles but what I need is simple vertical Toolbar on Left Side of Client area. For Example consider Paint Application. Just like paint I need to add few controls in my application. Please suggest me something.
Fresher16
23-Nov-12 23:25pm
View
Hi shambhoo...
Suppose there are few combo box on your Dialog. what i want is when i select the parameter from 1st combo box the rest should change depending on the 1st parameter selected.
For Ex:
Consider there are 3 parameters namely, Student, Employee, Bank Name.
When I select student then the remaining Combo Box will be regarding the student Information. For Employee remaining Combo Box will represent Employee Information... and so on.....
I Hope now u would have got what i want???
Fresher16
3-Nov-12 1:40am
View
I have added Buttons Using Toolbox.
Fresher16
23-Aug-12 4:24am
View
If u get some time then pls have a look at it once.
Fresher16
23-Aug-12 4:14am
View
By the way joan can u help me with that "MFC Print Preview Extension DLL for Dialog"? when m compiling that project, it gives error that "afximpl.h" could not be found. I copied that file in directory but still there's some error in that file.
Fresher16
23-Aug-12 4:07am
View
Thanks...!!!
Fresher16
22-Aug-12 23:53pm
View
thanks for your help joan... m new to CP so was not knowing anything of what u said. will keep that in mind.
Fresher16
22-Aug-12 7:22am
View
sorry to say but i have clearly mentioned about my need in my question above.
i have clearly mentioned that i need that for my dialog based app.
n if u haven't get that then i m explaining again.
i want to print the data from the edit box (Multiline and Read only) which i have implemented using ActiveX control "Microsoft Common Dialog control, version 6.0" . Can u help me now? The one given in "MFC Print preview extension DLL for dialogs" m not getting how to implement that? if possible pls help me with that
Fresher16
22-Aug-12 6:19am
View
thanks joan but i want to use those functions on Dialog based App and not MDI? so pls help me with that..
Fresher16
21-Aug-12 6:21am
View
And for writing the Date, Time and Data to a text file i m doing it in following manner.....
CString strDate, strTime;
Time = CTime::GetCurrentTime();
strDate = Time.Format("%x-");
strTime = Time.Format("%X");
file.Write(strDate, 9);
file.Write(strTime, 9);
file.Write(" Initializing Key Test....\r\n", 28);
Fresher16
21-Aug-12 6:20am
View
i have mentioned my problem above... i missing some data...
Fresher16
21-Aug-12 2:41am
View
Deleted
And for writing the Date, Time and Data to a text file i m doing it in following manner.....
CString strDate, strTime;
Time = CTime::GetCurrentTime();
strDate = Time.Format("%x-");
strTime = Time.Format("%X");
file.Write(strDate, 9);
file.Write(strTime, 9);
file.Write(" Initializing Key Test....\r\n", 28);
Fresher16
21-Aug-12 2:31am
View
Here is the code....
CStdioFile fp;
CString m_Buffer;
CString m_TempBuffer;
fp.Open(cFileAddr, CFile::modeRead);
while (!feof (fp.m_pStream))
{
fp.ReadString( m_TempBuffer );
m_Buffer += m_TempBuffer;
m_Buffer += "\r\n";
}
fp.Close();
m_EditBox.SetWindowText(m_Buffer);
Fresher16
16-Jun-12 5:34am
View
My Project deadline are too close n i have to do something on it by monday so pls help me out?
Fresher16
16-Jun-12 5:19am
View
i didn't get you? i want to read the response generated by my hardware on Printer keystrokes as soon as dialog opens.
Fresher16
16-Jun-12 5:17am
View
i have gone through your project before and it really helps to understand the serial communication concept for the freshers like me.
i will tell u what m trying to do.
i m sending a command to my hardware on a button click event and after that m opening a new dialog and i want to read the data from USB as soon as the dialog initializes or simultaneously
Show More