Profesor
May 10th, 1999, 10:34 AM
I use VC++ 5.0, MFC 4.21.
I have a function, which archives a database and writes in the window resources. But, function does not give a focus to window to use controls (buttons etc.). Why or how to correctly program it?
I use modalless dialog by:
m_pArchivDlg->Create(IDD_ARCHIVEDIALOG);
m_pArchivDlg->ShowWindow(SW_SHOW);
m_pArchivDlg->UpdateWindow();
... and now continues long procedure, which using ODBC archives a database.
I can change a static text by:
m_pArchivDlg->m_StaticTable.SetWindowText(TEXT);
but this is all!
I have a function, which archives a database and writes in the window resources. But, function does not give a focus to window to use controls (buttons etc.). Why or how to correctly program it?
I use modalless dialog by:
m_pArchivDlg->Create(IDD_ARCHIVEDIALOG);
m_pArchivDlg->ShowWindow(SW_SHOW);
m_pArchivDlg->UpdateWindow();
... and now continues long procedure, which using ODBC archives a database.
I can change a static text by:
m_pArchivDlg->m_StaticTable.SetWindowText(TEXT);
but this is all!