MessageBox With Timeout
Posted
by Alexandr Shcherbakov
on July 30th, 1999
This class has a very simple interface
CMessageBoxEx() CMessageBoxEx(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType, UINT uTimeOut, BOOL bShowTimeOut = TRUE)
int DoMessageBox() int DoMessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType, UINT uTimeOut, BOOL bShowTimeOut = TRUE)The object creates a thread to check time elapsed. When timeout is reached, the thread posts WM_CLOSE message to the message box.

Comments
There are no comments yet. Be the first to comment!