Message declaration.
const int SET_TIMER_MESSAGE = WM_USER + 1
message handler modification.
ON_MESSAGE( SET_TIMER_MESSAGE, OnMySetTimerMessage )
// Message handler implementation.
void MyDlgClass::OnMySetTimerMessage( WPARAM dwWParam_i, LPARAM dwLParam_i)
{
}
// Non-GUI thread sending message to GUI thread for gui related operations.
UINT MyThread()
{
...
ptrDlgHandle->PostMessage( SET_TIMER_MESSAGE, 0,0 );
}