dialog

dialog

Post by EDwin Chu » Sat, 25 Nov 1995 04:00:00



hi ,

        Just wonder how to pop a dialog box and make it disappear
        5 sec later in a specification location ??

Edwin

 
 
 

dialog

Post by FarMall » Sat, 02 Dec 1995 04:00:00


Quote:>            Just wonder how to pop a dialog box and make it disappear
>    5 sec later in a specification location ??

Forgive me if this is painfully obvious, but you could probably use a
Timer to notify you when 5 seconds is up.. for example,

void OnTimer(UINT timerID, ...)
{
if (timerID == <your timer>)
PostMesage(WM_CLOSE);

Quote:}

You would have to make a message map entry for WM_TIMER, and then actually
setup the timer (using the MFC Function SetTimer(...) ) in InitDialog() or
something....

Mason

<^^ Who is, little by little, getting a grip on this MFC stuff... :) >