Thread: TabStop

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    8

    TabStop

    I have tried to make a window using CreateWindowEx.
    The children of this window is created like this:
    Code:
    CreateWindow("button", "Close", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | WS_TABSTOP,
    	     4, 4, 75, 25, MainWnd, (HMENU) 1, hInstance, NULL);
    But i do not know how to set the tab id, or in any way get the tab key to work, and i do NOT want to use a dialog. Can someone help me out here?

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    You need an IsDialogMessage() in your message loop. I'm not sure about tab order.

    http://weblogs.asp.net/oldnewthing/a.../21/55384.aspx

  3. #3
    Registered User
    Join Date
    Apr 2004
    Posts
    8

    Thanks

    I managed to fix it after looking at that page,
    but their example was totally screwed up.
    Thanks, anyway!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Struct and file problem!!! urgent
    By theprogrammer in forum C Programming
    Replies: 2
    Last Post: 03-29-2009, 04:29 PM
  2. passwd program
    By cus in forum C Programming
    Replies: 13
    Last Post: 01-07-2009, 06:57 PM
  3. Replies: 16
    Last Post: 08-25-2008, 11:08 PM
  4. Factorial
    By foxman in forum Contests Board
    Replies: 27
    Last Post: 07-11-2008, 06:59 PM
  5. EOF is my nemesis
    By Aerie in forum C Programming
    Replies: 11
    Last Post: 04-26-2005, 01:21 PM