about SendMessage
-
There is (of course) a lot of doumentation about (with related samples), see, for instance http://msdn2.microsoft.com/en-us/library/ms644950.aspx[^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
//LRESULT SendMesage ( HWND hWnd , UINT message , WPARAM wParam , LPARAM lParam ) //hWnd : Handle to window //message : WM_***** message ( eg:EM_CLOSE , WM_PAINT ... ) wParam & lParam : additional message specific arguments //MFC //--- void CMyDlg::OnBnClickedOk() { SendMessage( WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ; //close current window //or ::SendMessage( HWND_BROADCAST , WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ; /*close desktop windows */ }; //WIN32 // //#include LRESULT OnAnyEvent( HWND hWnd )//invoked from windowproc { SendMessage( hWnd , WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ; } //Visit msdn for complete reference for Windows Messages
-
There is (of course) a lot of doumentation about (with related samples), see, for instance http://msdn2.microsoft.com/en-us/library/ms644950.aspx[^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
CPallini wrote:
There is (of course) a lot of doumentation about (with related samples), see, for instance http://msdn2.microsoft.com/en-us/library/ms644950.aspx\[^\].
I wonder how you find these things. ;P
Nobody can give you wiser advice than yourself. - Cicero
-
CPallini wrote:
There is (of course) a lot of doumentation about (with related samples), see, for instance http://msdn2.microsoft.com/en-us/library/ms644950.aspx\[^\].
I wonder how you find these things. ;P
Nobody can give you wiser advice than yourself. - Cicero
-
I wonder how the OP cannot! :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
CPallini wrote:
I wonder how the OP cannot!
Maybe you are lucky.;P
WhiteSky