witch message?
-
hi, I want to start a procedure wenn my dialog has been drawn and initialiezed. Witch Windows Message Handler do i have to use? greetz willem
-
hi, I want to start a procedure wenn my dialog has been drawn and initialiezed. Witch Windows Message Handler do i have to use? greetz willem
-
no it doesn't work; BOOL CImportProcessDlg::OnInitDialog() { CDialog::OnInitDialog(); for (long i = 1; i < 100000; i++) { m_Tekst.Format("%d", i); UpdateData(FALSE); } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } if i run this the dialog just waits till i = 1000000 and then it pop's up... :S
-
no it doesn't work; BOOL CImportProcessDlg::OnInitDialog() { CDialog::OnInitDialog(); for (long i = 1; i < 100000; i++) { m_Tekst.Format("%d", i); UpdateData(FALSE); } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } if i run this the dialog just waits till i = 1000000 and then it pop's up... :S
Try this:
- Add a hidden button to your dialog, with id
ID_RUN_LOOP
. - Write a handler for the
ID_RUN_LOOP
command. The handler should execute thefor
loop. - In your dialog's
OnInitDialog()
handler, do this:PostMessage (WM_COMMAND, ID_RUN_LOOP);
This should cause the loop to be executed after your dialog has been initialized and shown on the screen. /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com
- Add a hidden button to your dialog, with id
-
Try this:
- Add a hidden button to your dialog, with id
ID_RUN_LOOP
. - Write a handler for the
ID_RUN_LOOP
command. The handler should execute thefor
loop. - In your dialog's
OnInitDialog()
handler, do this:PostMessage (WM_COMMAND, ID_RUN_LOOP);
This should cause the loop to be executed after your dialog has been initialized and shown on the screen. /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com
- Add a hidden button to your dialog, with id