CBS_TimedMessageBox Class Reference

Opens a timed message box. More...

List of all members.

Public Member Functions

 CBS_TimedMessageBox ()
virtual UINT TimedMessageBox (HWND hwndParent, LPCTSTR ptszMessage, LPCTSTR ptszTitle, UINT flags, DWORD dwTimeout)
virtual ~CBS_TimedMessageBox ()


Detailed Description

Opens a timed message box.

Author:
Dror Otmi
Date:
12.07.2003
Version:
V 1.0 Initial version


Constructor & Destructor Documentation

CBS_TimedMessageBox::CBS_TimedMessageBox  ) 
 

Constructor

virtual CBS_TimedMessageBox::~CBS_TimedMessageBox  )  [virtual]
 

Destructor


Member Function Documentation

UINT CBS_TimedMessageBox::TimedMessageBox HWND  hwndParent,
LPCTSTR  ptszMessage,
LPCTSTR  ptszTitle,
UINT  flags,
DWORD  dwTimeout
[virtual]
 

The same as the standard MessageBox, except it also accepts a timeout. If the user does not respond within the specified timeout, then the value 0 is returned instead

Parameters:
hwndParent The window handle of the parant window.
ptszMessage The message box text.
ptszTitle The message box title.
flags The message box flags.
dwTimeout The timeout, if this argument equal - 1 (MB_TIME_INFINITE) the message box stays open until the user closes it. If this argument is 0, the function will return -1 an will not open any message box.
Returns:
-1 if the dwTimeout is 0
0 if the message box is closed because the timeout elapsed.
the ID of the botton if the user closes it.
See also MSDN documentation of the WIN32 API MessageBox().
Bitspot AG


Bitspot AG
Rietlistrasse 1
CH-6345 Neuheim

Bitspot AG Logo

Phone:

+41 41 755 11 22

Fax:

+41 41 755 11 31

e-mail:

mail@bitspot.com

Web:

www.bitspot.com