http://img194.imageshack.us/img194/1737/hwnd8ry.jpg
i am trying to post a message to my windowless app
i tried
but they all either give compile error or dont workCode:PostMessage( theApp.GetMainWnd()->m_hWnd , WM_MAKE_TIME_STOP_DLG, (WPARAM)broken_msg_obj.parm2, 0); PostMessage( theApp.m_hThread , WM_MAKE_TIME_STOP_DLG, (WPARAM)broken_msg_obj.parm2, 0); PostMessage( hwnd , WM_MAKE_TIME_STOP_DLG, (WPARAM)broken_msg_obj.parm2, 0); PostMessage( m_pMainWnd->GetSafeHwnd() , WM_MAKE_TIME_STOP_DLG, (WPARAM)broken_msg_obj.parm2, 0); PostMessage( GetParent(0) , WM_MAKE_TIME_STOP_DLG, (WPARAM)broken_msg_obj.parm2, 0); PostMessage(this->m_pMainWnd->m_hWnd, WM_MAKE_TIME_STOP_DLG, (WPARAM)broken_msg_obj.parm2, 0);
my initinstance of the app
please asssist :wave:Code:BOOL CAsevApp::InitInstance() { // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific initialization routines you do not need. CDialog dlg; m_pMainWnd = &dlg; return TRUE; }



LinkBack URL
About LinkBacks


