Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: "The system cannot find the file specified" Pin
Cheongwadae2-Sep-11 17:34
Cheongwadae2-Sep-11 17:34 
QuestionIntroducing tests into a legacy application? Pin
Stefan_Lang1-Sep-11 22:18
Stefan_Lang1-Sep-11 22:18 
AnswerRe: Introducing tests into a legacy application? Pin
Orjan Westin1-Sep-11 23:10
professionalOrjan Westin1-Sep-11 23:10 
GeneralRe: Introducing tests into a legacy application? Pin
Stefan_Lang1-Sep-11 23:59
Stefan_Lang1-Sep-11 23:59 
GeneralRe: Introducing tests into a legacy application? Pin
Orjan Westin2-Sep-11 3:30
professionalOrjan Westin2-Sep-11 3:30 
GeneralRe: Introducing tests into a legacy application? Pin
Stefan_Lang2-Sep-11 4:01
Stefan_Lang2-Sep-11 4:01 
GeneralRe: Introducing tests into a legacy application? Pin
Orjan Westin2-Sep-11 3:45
professionalOrjan Westin2-Sep-11 3:45 
QuestionText drawing is not getting properly Pin
Amrit Agr31-Aug-11 3:15
Amrit Agr31-Aug-11 3:15 
Hi Developers,
I want to draw text(number of recorded symptoms) at OnPaint()
This is a Dialog Bar in which i have handled OnPaint() as well.

Here the code:


CString strClipCount;
CRect rcClipBoard;
m_stClipMind.GetWindowRect( rcClipBoard );
ScreenToClient(rcClipBoard);

strClipCount.Format( _T("%3d"), theApp.m_MentalClipbrd.GetCount() );

CPaintDC paintDC(this);
paintDC.Rectangle(rcClipBoard);

//COLORREF color = paintDC.SetBkColor(RGB(255,255,255));
paintDC.SelectObject(theApp.pCtrlFont);
paintDC.SetTextColor(RGB(0,0,0));

paintDC.TextOut( rcClipBoard.left, rcClipBoard.top, strClipCount, strlen(strClipCount) );

The problem is that the painting is not getting properly i.e. Whenever a msg box get shown at click of it's OK button it display the text for a while & after that it gets disappeared.

Can anyone help me out.

Thanks.
Amrit Agrawal
Software Developer
AnswerRe: Text drawing is not getting properly Pin
Alan Balkany31-Aug-11 4:10
Alan Balkany31-Aug-11 4:10 
AnswerRe: Text drawing is not getting properly Pin
xrg_soft@163.com31-Aug-11 6:16
xrg_soft@163.com31-Aug-11 6:16 
GeneralRe: Text drawing is not getting properly Pin
Amrit Agr1-Sep-11 22:50
Amrit Agr1-Sep-11 22:50 
GeneralRe: Text drawing is not getting properly Pin
xrg_soft@163.com5-Sep-11 18:13
xrg_soft@163.com5-Sep-11 18:13 
Questionconvert a C app to an MFC based Windows app Pin
Angela201231-Aug-11 3:00
Angela201231-Aug-11 3:00 
QuestionHow to learn C++ Pin
shanmugarajaa30-Aug-11 18:16
shanmugarajaa30-Aug-11 18:16 
QuestionRe: How to learn C++ Pin
David Crow31-Aug-11 2:41
David Crow31-Aug-11 2:41 
AnswerRe: How to learn C++ Pin
Chris Losinger31-Aug-11 3:02
professionalChris Losinger31-Aug-11 3:02 
GeneralRe: How to learn C++ Pin
Albert Holguin31-Aug-11 8:22
professionalAlbert Holguin31-Aug-11 8:22 
AnswerRe: How to learn C++ Pin
Nemanja Trifunovic31-Aug-11 6:10
Nemanja Trifunovic31-Aug-11 6:10 
GeneralRe: How to learn C++ Pin
Albert Holguin31-Aug-11 8:25
professionalAlbert Holguin31-Aug-11 8:25 
GeneralRe: How to learn C++ Pin
Orjan Westin31-Aug-11 23:37
professionalOrjan Westin31-Aug-11 23:37 
AnswerRe: How to learn C++ Pin
MMJ19892-Sep-11 22:28
MMJ19892-Sep-11 22:28 
QuestionHow to get software (exe, dll) Version info from a buffer? Pin
includeh1030-Aug-11 16:16
includeh1030-Aug-11 16:16 
AnswerRe: How to get software (exe, dll) Version info from a buffer? Pin
Orjan Westin31-Aug-11 4:03
professionalOrjan Westin31-Aug-11 4:03 
AnswerRe: How to get software (exe, dll) Version info from a buffer? Pin
j_schultz31-Aug-11 8:36
j_schultz31-Aug-11 8:36 
QuestionRe: How to get software (exe, dll) Version info from a buffer? Pin
David Crow31-Aug-11 9:54
David Crow31-Aug-11 9:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.