Click here to Skip to main content
15,903,523 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Textbox unable to be displayed in CFrameWnd? Pin
Wes Aday7-Jun-07 9:56
professionalWes Aday7-Jun-07 9:56 
GeneralRe: MFC Textbox unable to be displayed in CFrameWnd? Pin
Mark Salsbery7-Jun-07 10:36
Mark Salsbery7-Jun-07 10:36 
GeneralRe: MFC Textbox unable to be displayed in CFrameWnd? Pin
Michael Dunn7-Jun-07 20:01
sitebuilderMichael Dunn7-Jun-07 20:01 
QuestionCDC DrawText Pin
gurucplusplus7-Jun-07 8:04
gurucplusplus7-Jun-07 8:04 
AnswerRe: CDC DrawText Pin
Matthew Faithfull7-Jun-07 8:19
Matthew Faithfull7-Jun-07 8:19 
AnswerRe: CDC DrawText [modified] Pin
Mark Salsbery7-Jun-07 8:19
Mark Salsbery7-Jun-07 8:19 
GeneralRe: CDC DrawText Pin
gurucplusplus7-Jun-07 8:28
gurucplusplus7-Jun-07 8:28 
GeneralRe: CDC DrawText Pin
Mark Salsbery7-Jun-07 8:35
Mark Salsbery7-Jun-07 8:35 
When you call DrawText, you ARE updating the text.

You use Invalidate methods to force a repaint from outside of OnPaint/OnDraw.

For example, if the text you are drawing changes as the result of some process in the application
and you want the window updated to reflect the change, then you'd call Invalidate. This will
mark the given area of the window as invalid. On the next WM_PAINT message (which will call
OnDraw() for CViews) you will call DrawText() with the updated text.

I hope that made sense Smile | :)
Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: CDC DrawText Pin
gurucplusplus7-Jun-07 8:52
gurucplusplus7-Jun-07 8:52 
GeneralRe: CDC DrawText Pin
Mark Salsbery7-Jun-07 9:11
Mark Salsbery7-Jun-07 9:11 
GeneralRe: CDC DrawText Pin
gurucplusplus7-Jun-07 9:57
gurucplusplus7-Jun-07 9:57 
QuestionCToolBar disable/enable buttons Pin
Romiks7-Jun-07 7:45
Romiks7-Jun-07 7:45 
AnswerRe: CToolBar disable/enable buttons Pin
Mark Salsbery7-Jun-07 7:52
Mark Salsbery7-Jun-07 7:52 
GeneralRe: CToolBar disable/enable buttons Pin
Romiks7-Jun-07 19:41
Romiks7-Jun-07 19:41 
GeneralRe: CToolBar disable/enable buttons Pin
Nelek8-Jun-07 3:09
protectorNelek8-Jun-07 3:09 
GeneralRe: CToolBar disable/enable buttons Pin
Mark Salsbery8-Jun-07 4:32
Mark Salsbery8-Jun-07 4:32 
GeneralRe: CToolBar disable/enable buttons Pin
Romiks8-Jun-07 18:54
Romiks8-Jun-07 18:54 
GeneralRe: CToolBar disable/enable buttons Pin
Mark Salsbery9-Jun-07 7:51
Mark Salsbery9-Jun-07 7:51 
GeneralRe: CToolBar disable/enable buttons Pin
Romiks11-Jun-07 20:38
Romiks11-Jun-07 20:38 
QuestionRe: CToolBar disable/enable buttons Pin
Mark Salsbery12-Jun-07 6:28
Mark Salsbery12-Jun-07 6:28 
AnswerRe: CToolBar disable/enable buttons Pin
Romiks16-Jun-07 23:37
Romiks16-Jun-07 23:37 
GeneralRe: CToolBar disable/enable buttons Pin
Mark Salsbery17-Jun-07 7:29
Mark Salsbery17-Jun-07 7:29 
GeneralRe: CToolBar disable/enable buttons Pin
Mark Salsbery17-Jun-07 8:09
Mark Salsbery17-Jun-07 8:09 
GeneralRe: CToolBar disable/enable buttons Pin
Romiks17-Jun-07 18:58
Romiks17-Jun-07 18:58 
GeneralRe: CToolBar disable/enable buttons Pin
Mark Salsbery18-Jun-07 4:29
Mark Salsbery18-Jun-07 4:29 

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.