|
-
Dec 14th, 2003, 03:30 PM
#1
Thread Starter
<?="Moderator"?>
WS_TABSTOP related question
hey i have two windows that i create and both i want to be able to tab though the controls, all the controls have the WS_TABSTOP style and the windows have the WS_EX_CONTROLPARENT style on them but i can only get on window at a time to be able to tab. I think its the code in the message loop which i found from searching here,
Code:
while(GetMessage(&msg,NULL,0,0)>0){
if(!IsDialogMessage(hwnd_Win,&msg)){
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
any ideas would be great Thanks
-
Dec 15th, 2003, 04:53 AM
#2
You need to call IsDialogMessage for every window that should tab.
Best would be to have some container where you put in all tabbing HWNDs and just loop over that container.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 15th, 2003, 08:32 AM
#3
Thread Starter
<?="Moderator"?>
so where would that go? sorry im confused about where to put the IsDialogMessage. does it not go in the messsage loop, or do i just call it more than once where it is?
Thanks
-
Dec 15th, 2003, 08:45 AM
#4
Where it is, more than once.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 15th, 2003, 08:53 AM
#5
Thread Starter
<?="Moderator"?>
lol, no excuse for that kinda stupidity
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|