BOOL PostThreadMessage(
DWORD idThread, // thread identifier
UINT Msg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);应该可以把
DWORD idThread, // thread identifier
UINT Msg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);应该可以把
UINT SetTimer(
HWND hWnd, // handle of window for timer messages
UINT nIDEvent, // timer identifier
UINT uElapse, // time-out value
TIMERPROC lpTimerFunc // address of timer procedure
);
我没有窗口hwnd=NULL,没有timeproc,lpTimerFunc==NULL
它会在超时是向当前线程发送消息WM_TIMER,但是
GetMessage得到LPMSG的其它内容应在什么地方填充?
wTimerID = wParam; // timer identifier
tmprc = (TIMERPROC *) lParam; // address of timer callback
明白?
::GetMessage( &Msg,....
GetMessage函数自己得到消息种类。