Results 1 to 5 of 5

Thread: WS_TABSTOP related question

  1. #1

    Thread Starter
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    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

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3

    Thread Starter
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099
    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

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  5. #5

    Thread Starter
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099
    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
  •  



Click Here to Expand Forum to Full Width