Click here to Skip to main content
16,010,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus16-Sep-01 14:43
protectorChristian Graus16-Sep-01 14:43 
GeneralRe: How do I remove a function in ATL ? Pin
Derek Waters16-Sep-01 14:45
Derek Waters16-Sep-01 14:45 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus16-Sep-01 14:56
protectorChristian Graus16-Sep-01 14:56 
AnswerRe: How do I remove a function in ATL ? Pin
asfas16-Sep-01 23:33
asfas16-Sep-01 23:33 
GeneralScrolling CEdit Pin
Jake Palmer15-Sep-01 11:57
Jake Palmer15-Sep-01 11:57 
GeneralRe: Scrolling CEdit Pin
Paolo Messina15-Sep-01 12:47
professionalPaolo Messina15-Sep-01 12:47 
GeneralCDialog are real time log Pin
15-Sep-01 11:29
suss15-Sep-01 11:29 
GeneralRe: CDialog are real time log Pin
Paolo Messina15-Sep-01 12:58
professionalPaolo Messina15-Sep-01 12:58 
Hi,

A simple solution could be posting a custom message to the dialog, and starting the syncing process in response to that message instead of WM_INITDIALOG.
Something like:
#define WMU_STARTSYNC (WM_USER+123)  // or register one with RegisterWindowMessage()

CMyDialog::OnInitDialog()
{
   PostMessage(WMU_STARTSYNC);
   ...
}

CMyDialog::OnStartSync()
{
   ...
}

Posted message will be handled after all the messages in the queue get handled, so hopefully after the dialog is displayed (surely after WM_INITDIALOG).

You may also force the dialog to be visible with ShowWindow(SW_SHOW) in OnInitDialog(), but the dialog won't be centered (try CenterWindow() to fix that).

Cheers,
Paolo

------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
GeneralIEEE 754 to string Pin
Erik Hammar15-Sep-01 10:50
Erik Hammar15-Sep-01 10:50 
GeneralRe: IEEE 754 to string Pin
Anders Molin15-Sep-01 13:22
professionalAnders Molin15-Sep-01 13:22 
GeneralOffice 2000 Style Report Control Pin
Giles15-Sep-01 8:42
Giles15-Sep-01 8:42 
GeneralDeveloping an NT Service with MFC Pin
mantrashrim14-Sep-01 14:01
mantrashrim14-Sep-01 14:01 
GeneralRe: Developing an NT Service with MFC Pin
Tim Deveaux14-Sep-01 14:14
Tim Deveaux14-Sep-01 14:14 
GeneralRe: Developing an NT Service with MFC Pin
Giles15-Sep-01 8:29
Giles15-Sep-01 8:29 
GeneralRe: Developing an NT Service with MFC Pin
Anders Molin15-Sep-01 9:01
professionalAnders Molin15-Sep-01 9:01 
GeneralRe: Developing an NT Service with MFC Pin
Giles16-Sep-01 11:45
Giles16-Sep-01 11:45 
GeneralRe: Developing an NT Service with MFC Pin
User 988515-Sep-01 11:50
User 988515-Sep-01 11:50 
GeneralRe: Developing an NT Service with MFC Pin
mantrashrim17-Sep-01 5:38
mantrashrim17-Sep-01 5:38 
GeneralHotkey problem Pin
User 988514-Sep-01 11:09
User 988514-Sep-01 11:09 
GeneralBringWindowToTop Pin
Chris Klecker14-Sep-01 10:43
Chris Klecker14-Sep-01 10:43 
GeneralRe: BringWindowToTop Pin
Paolo Messina15-Sep-01 13:05
professionalPaolo Messina15-Sep-01 13:05 
GeneralRe: BringWindowToTop Pin
Chris Klecker17-Sep-01 3:38
Chris Klecker17-Sep-01 3:38 
GeneralDynamic bitmap Pin
SnapRick14-Sep-01 9:17
SnapRick14-Sep-01 9:17 
GeneralRe: Dynamic bitmap Pin
Remi Morin14-Sep-01 10:23
Remi Morin14-Sep-01 10:23 
QuestionHow can I know that the mouse is/is not over my control Pin
Remi Morin14-Sep-01 9:00
Remi Morin14-Sep-01 9:00 

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.