dialog question
-
is there a notification message that will tell me when a dialog has finished initializing for the first time? thank you
hi friend wut u want?? for y u specify at first time???? WM_INITDIALOG is a message will post when a dialog initiates.. i think u aimed to do some trick with single instance...am i right?? Renjith:laugh: Hai Friends me from Pandalam..and i think there is a sofware behind everything... so enjoy with the codes...
-
hi friend wut u want?? for y u specify at first time???? WM_INITDIALOG is a message will post when a dialog initiates.. i think u aimed to do some trick with single instance...am i right?? Renjith:laugh: Hai Friends me from Pandalam..and i think there is a sofware behind everything... so enjoy with the codes...
-
WM_INITDIALOG happens when the dialog is about to inialize. i have a function that i want to run after the dialog is inialized.
I"m not sure about this, but
BOOL m_bFirstPass;
CDialog:CDialog()
{
m_bFirstPass = FALSE;
}CDialog::OnInitDialog()
{
m_bFirstPass = TRUE;
}CDialog::OnActivate()
{
if(m_bFirstPass == TRUE)
//Execute code only on first call
m_bFirstPass = FALSE; //Prevent from code being executed again
}This might work! :) "An expert is someone who has made all the mistakes in his or her field" - Niels Bohr