Connecting Tech Pros Worldwide Forums | Help | Site Map

Question on: IsDialogMessage

Phoebe
Guest
 
Posts: n/a
#1: Jul 22 '05
Hello,

Can anyone tell when we need to use the function IsDialogMessage?
What is the different between Code 1 and Code 2?

Code 1:
---------
while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
if(!IsDialogMessage(&msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}

Code 2:
---------
while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}

Thanks!!



Sharad Kala
Guest
 
Posts: n/a
#2: Jul 22 '05

re: Question on: IsDialogMessage



"Phoebe" <pwong@xmlhk.com> wrote in message news:c6nojp$8c1$1@www.csis.hku.hk...[color=blue]
> Hello,
>
> Can anyone tell when we need to use the function IsDialogMessage?
> What is the different between Code 1 and Code 2?[/color]

http://www.slack.net/~shiva/welcome.txt
http://www.parashift.com/c++-faq-lite/how-to-post.html


JKop
Guest
 
Posts: n/a
#3: Jul 22 '05

re: Question on: IsDialogMessage


http://msdn.microsoft.com/library/de...l=/library/en-
us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference
/dialogboxfunctions/isdialogmessage.asp
Closed Thread


Similar C / C++ bytes