P
Phoebe
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!!
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!!