받는 쪽

#define WM_MESSGAE WM_USER + 1

LRESULT OnRequestFromClient( WPARAM wParam, LPARAM lParam );

ON_MESSAGE( WM_MESSAGE, OnRequestFromClient)


보내는 쪽

HWND hWnd = ::FindWindow( NULL, "Process Name" );

::SendMessage( hWnd, WM_MESSAGE, 0, 0 );

'NativeCode > mfc' 카테고리의 다른 글

CStringArray  (0) 2010.03.18
SendMessage 종류  (0) 2010.03.18
WM_COPYDATA  (0) 2010.03.18
Message Map  (0) 2010.03.18
MFC Exception  (0) 2010.03.18

+ Recent posts