Click here to Skip to main content
15,909,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC Textbox unable to be displayed in CFrameWnd? Pin
Cyrilix7-Jun-07 9:36
Cyrilix7-Jun-07 9:36 
AnswerRe: MFC Textbox unable to be displayed in CFrameWnd? Pin
Wes Aday7-Jun-07 9:40
professionalWes Aday7-Jun-07 9:40 
GeneralRe: MFC Textbox unable to be displayed in CFrameWnd? Pin
Cyrilix7-Jun-07 9:52
Cyrilix7-Jun-07 9:52 
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 
If you're doing this right you should not have to call InvalidateRect(). OnDraw only gets called when some Rect is alreay invalid, that's why windows generated the WM_PAINT to get you to call OnDraw in the first place. If your text doesn't appear without this then something else is wrong.
I'm not sure what you mean by
gurucplusplus wrote:
update text to a frame
. With most windows you can call SetWindowText to set the text that's displayed. If this is a custom window class or an owner draw control then DrawText might be rightUnsure | :~


Nothing is exactly what it seems but everything with seems can be unpicked.

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 
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 

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.