Connecting Tech Pros Worldwide Help | Site Map

Question on: IsDialogMessage

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 22nd, 2005, 10:18 AM
Phoebe
Guest
 
Posts: n/a
Default Question on: IsDialogMessage

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, 10:18 AM
Sharad Kala
Guest
 
Posts: n/a
Default 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, 10:18 AM
JKop
Guest
 
Posts: n/a
Default Re: Question on: IsDialogMessage

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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.