Nicknack
08-21-2009, 07:12 PM
hey,
I took another glance at tabbing through all controls in a form without a custom routine and found a interesting solution on the web: IsDialogMessage (http://msdn.microsoft.com/en-us/library/ms645498%28VS.85%29.aspx) .
now I don't know how exactly PPL handles messages, does it have a internal message loop somewhere?
if so could you change your message loop to something like this Alain?
MSG msg;
while (GetMessage(&msg, NULL, 0, 0)) {
if (IsDialogMessage(hwnd, &msg)) {
/* Already handled by dialog manager */
} else {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
then we should be able to tap through our non dialog based forms ;)
this thread (http://www.gamedev.net/community/forums/topic.asp?topic_id=267153) gives you some additional background information.
let me hear your opinion!
I took another glance at tabbing through all controls in a form without a custom routine and found a interesting solution on the web: IsDialogMessage (http://msdn.microsoft.com/en-us/library/ms645498%28VS.85%29.aspx) .
now I don't know how exactly PPL handles messages, does it have a internal message loop somewhere?
if so could you change your message loop to something like this Alain?
MSG msg;
while (GetMessage(&msg, NULL, 0, 0)) {
if (IsDialogMessage(hwnd, &msg)) {
/* Already handled by dialog manager */
} else {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
then we should be able to tap through our non dialog based forms ;)
this thread (http://www.gamedev.net/community/forums/topic.asp?topic_id=267153) gives you some additional background information.
let me hear your opinion!