Yep...that is what I need.
Thanks so much.
I got what I really want by your suggestion.
Here is that part of code which works fine. :-)
BOOL CALLBACK DlgProc1(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch(msg)
{
case WM_INITDIALOG:
SetTimer(hwnd, 1, 500, NULL);
return TRUE;
case WM_TIMER:
switch(wParam)
{
case 1: DlgEvent(hwnd);
break;
}
break;
case WM_COMMAND:
switch(wParam)
{
case IDOK:
DestroyWindow(hwnd);
return TRUE;
}
break;
case WM_DESTROY:
KillTimer(hwnd,1);
PostQuitMessage(0);
break;
} // end of 'switch' for msg
return FALSE;
}
On Dec 5, 2007 4:07 PM, Rick Robinson <rro...@it...> wrote:
> I believe your looking for the SetTimer function and trap the WM_TIMER
> message in your callback.
>
> Rick
>
> Jessica Chen wrote:
> > in Unix, we can use setitimer() to set interval timer.
> > thus, when the timer expires, an SIGALRM is sent out.
> >
> > i don't know if there's similar timer setting in Win32?
> > ------------------------------------------------------------------------
> >
> >
> -------------------------------------------------------------------------
> > SF.Net email is sponsored by: The Future of Linux Business White Paper
> > from Novell. From the desktop to the data center, Linux is going
> > mainstream. Let it simplify your IT future.
> > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
> > ------------------------------------------------------------------------
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.503 / Virus Database: 269.16.14/1172 - Release Date:
> 12/5/2007 8:41 AM
> >
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell. From the desktop to the data center, Linux is going
> mainstream. Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|