Connecting Tech Pros Worldwide Help | Site Map

Question on: IsDialogMessage

  #1  
Old July 22nd, 2005, 11:18 AM
Phoebe
Guest
 
Posts: n/a
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!!


  #2  
Old July 22nd, 2005, 11:18 AM
Sharad Kala
Guest
 
Posts: n/a

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


  #3  
Old July 22nd, 2005, 11:18 AM
JKop
Guest
 
Posts: n/a

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 Threads
Thread Thread Starter Forum Replies Last Post
video edit in c++ giulio8 answers 1 September 28th, 2009 09:49 PM