Click here to Skip to main content
16,013,581 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How does a modal dialog work (message pump)? Pin
29-May-02 13:13
suss29-May-02 13:13 
GeneralRe: How does a modal dialog work (message pump)? Pin
29-May-02 18:20
suss29-May-02 18:20 
GeneralRe: How does a modal dialog work? Code snippets Pin
29-May-02 13:36
suss29-May-02 13:36 
GeneralRe: How does a modal dialog work? Code snippets Pin
Joaquín M López Muñoz29-May-02 23:12
Joaquín M López Muñoz29-May-02 23:12 
GeneralRe: How does a modal dialog work? Workaround Pin
30-May-02 0:50
suss30-May-02 0:50 
GeneralRe: How does a modal dialog work? Workaround Pin
Joaquín M López Muñoz30-May-02 2:36
Joaquín M López Muñoz30-May-02 2:36 
GeneralRe: How does a modal dialog work? Workaround Pin
30-May-02 6:59
suss30-May-02 6:59 
GeneralRe: How does a modal dialog work? Workaround Pin
Joaquín M López Muñoz1-Jun-02 5:28
Joaquín M López Muñoz1-Jun-02 5:28 
I don't really think having your own message pump (unless it is an a separate thread) is a good idea at all. Depending on the host program, the message pump can do a lot of things you don't have the slightest idea about (as indeed does MFC), so replacing it with your own is bound to problems.
As for the WM_PAINT message, well if it works and you're satisfied with it, I guess it's OK. Nevertheless, multimedia timers are probably best fit for this kind of purposes (thery're are designed for this), and they allow for more flexibility to set the framerate desired (as it stands now, I guess the WM_PAINT method causes your app to choke a bit, doesn't it.)

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
AnswerRe: How does a modal dialog work (message pump)? Pin
Paul M Watt29-May-02 7:24
mentorPaul M Watt29-May-02 7:24 
GeneralFile Type Association Pin
moobob29-May-02 4:34
moobob29-May-02 4:34 
GeneralRe: File Type Association Pin
Mauricio Ritter29-May-02 6:27
Mauricio Ritter29-May-02 6:27 
GeneralRe: File Type Association Pin
moobob29-May-02 7:06
moobob29-May-02 7:06 
GeneralCombo box without dropdown button Pin
ed987129-May-02 4:03
ed987129-May-02 4:03 
GeneralRe: Combo box without dropdown button Pin
dlhson29-May-02 6:09
dlhson29-May-02 6:09 
GeneralRe: Combo box without dropdown button Pin
ed987129-May-02 7:15
ed987129-May-02 7:15 
GeneralRe: Combo box without dropdown button Pin
aldeba29-May-02 23:48
aldeba29-May-02 23:48 
GeneralConvert a HRESULT to a string Pin
Anders Molin29-May-02 3:32
professionalAnders Molin29-May-02 3:32 
GeneralRe: Convert a HRESULT to a string Pin
Philippe Mori29-May-02 3:49
Philippe Mori29-May-02 3:49 
GeneralRe: Convert a HRESULT to a string Pin
CodeGuy29-May-02 3:44
CodeGuy29-May-02 3:44 
GeneralSubclassing a static control Pin
Cathy29-May-02 3:03
Cathy29-May-02 3:03 
GeneralRe: Subclassing a static control Pin
Roger Allen29-May-02 4:58
Roger Allen29-May-02 4:58 
GeneralRe: Subclassing a static control Pin
Cathy29-May-02 11:45
Cathy29-May-02 11:45 
GeneralATL DLL-server problem Pin
Hans Ruck29-May-02 2:27
Hans Ruck29-May-02 2:27 
GeneralRe: ATL DLL-server problem Pin
[James Pullicino]29-May-02 4:48
[James Pullicino]29-May-02 4:48 
GeneralRe: ATL DLL-server problem Pin
Roger Stewart29-May-02 4:44
professionalRoger Stewart29-May-02 4: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.