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

C / C++ / MFC

 
GeneralRe: Win CE program, SetFong() not work Pin
econy25-Mar-14 3:32
econy25-Mar-14 3:32 
QuestionWidth of dropdown list window Pin
bokideclan21-Mar-14 2:33
bokideclan21-Mar-14 2:33 
QuestionVery weird change font problem Pin
econy20-Mar-14 8:18
econy20-Mar-14 8:18 
QuestionRe: Very weird change font problem Pin
Randor 20-Mar-14 8:43
professional Randor 20-Mar-14 8:43 
AnswerRe: Very weird change font problem Pin
econy20-Mar-14 9:00
econy20-Mar-14 9:00 
AnswerRe: Very weird change font problem Pin
Randor 20-Mar-14 10:22
professional Randor 20-Mar-14 10:22 
GeneralRe: Very weird change font problem Pin
econy20-Mar-14 10:33
econy20-Mar-14 10:33 
AnswerRe: Very weird change font problem Pin
Randor 20-Mar-14 10:51
professional Randor 20-Mar-14 10:51 
econy wrote:

I wonder if WM_PAINT message handler could display messages immediately.
or even I draw it in a member function, it would refresh in OnPaint() executed?

No. There is no guarantee that when your WM_PAINT message fires that the subsystem will redraw window contents unless the rectangle/region/window is marked invalid. This is an OS optimization to prevent excessive redrawing. (However with DWM enabled[^] the rules do change a bit)

Read all of this so that in the future you can help others: Painting and Drawing[^]

Best Wishes,
-David Delaune
GeneralRe: Very weird change font problem Pin
econy20-Mar-14 13:20
econy20-Mar-14 13:20 
QuestionSetfont() not work Pin
econy20-Mar-14 5:38
econy20-Mar-14 5:38 
AnswerRe: Setfont() not work Pin
Randor 20-Mar-14 8:35
professional Randor 20-Mar-14 8:35 
GeneralRe: Setfont() not work Pin
econy20-Mar-14 8:42
econy20-Mar-14 8:42 
QuestionCEdit GetRect() question Pin
econy20-Mar-14 4:02
econy20-Mar-14 4:02 
AnswerRe: CEdit GetRect() question Pin
econy20-Mar-14 6:38
econy20-Mar-14 6:38 
QuestionCDatabase::ExecuteSQL Pin
Fawaz Ajani19-Mar-14 22:33
Fawaz Ajani19-Mar-14 22:33 
SuggestionRe: CDatabase::ExecuteSQL Pin
Richard MacCutchan19-Mar-14 23:22
mveRichard MacCutchan19-Mar-14 23:22 
GeneralRe: CDatabase::ExecuteSQL Pin
Fawaz Ajani20-Mar-14 1:55
Fawaz Ajani20-Mar-14 1:55 
GeneralRe: CDatabase::ExecuteSQL Pin
Richard MacCutchan20-Mar-14 2:33
mveRichard MacCutchan20-Mar-14 2:33 
GeneralRe: CDatabase::ExecuteSQL Pin
Fawaz Ajani20-Mar-14 5:49
Fawaz Ajani20-Mar-14 5:49 
GeneralRe: CDatabase::ExecuteSQL Pin
David Crow20-Mar-14 3:17
David Crow20-Mar-14 3:17 
GeneralRe: CDatabase::ExecuteSQL Pin
Fawaz Ajani20-Mar-14 5:52
Fawaz Ajani20-Mar-14 5:52 
QuestionRe: CDatabase::ExecuteSQL Pin
Fawaz Ajani25-Mar-14 10:05
Fawaz Ajani25-Mar-14 10:05 
Questionshowwindow(SW_HIDE) question Pin
econy19-Mar-14 15:19
econy19-Mar-14 15:19 
AnswerRe: showwindow(SW_HIDE) question Pin
David Crow19-Mar-14 16:48
David Crow19-Mar-14 16:48 
AnswerRe: showwindow(SW_HIDE) question Pin
Albert Holguin20-Mar-14 14:44
professionalAlbert Holguin20-Mar-14 14:44 

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.