Thread: how do you make a group box with CreateWindow?

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    72

    how do you make a group box with CreateWindow?

    I'm having trouble getting this together (maybe I'm just cross-eyed from looking at the screen too long )

    Anyone have this fresh in their head & could post an example?

    Thanks.

  2. #2
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    Code:
      CreateWindow( "Button", "GroupBox Control", WS_CHILD|WS_VISIBLE|BS_GROUPBOX ,
                    10, 10, 200, 100, hwnd, 0, GetModuleHandle(0), 0 );

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    72
    Quote Originally Posted by Dante Shamest
    Code:
      CreateWindow( "Button", "GroupBox Control", WS_CHILD|WS_VISIBLE|BS_GROUPBOX ,
                    10, 10, 200, 100, hwnd, 0, GetModuleHandle(0), 0 );
    Thank you. Much appreciated.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win32 API - Group Box Control
    By Matt-Stevens in forum Windows Programming
    Replies: 2
    Last Post: 09-05-2006, 08:46 AM
  2. fgets() to list box
    By tao in forum Windows Programming
    Replies: 4
    Last Post: 06-08-2006, 08:23 AM
  3. Dialog Box & Property Sheet :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 08-01-2002, 01:33 PM
  4. How to make a Mutii File Editing Box
    By emus21 in forum Windows Programming
    Replies: 2
    Last Post: 06-24-2002, 12:52 PM
  5. How do I make a text box??
    By BubbleMan in forum Windows Programming
    Replies: 12
    Last Post: 08-24-2001, 02:31 AM