Thread: Changing the style of a MDI child window

  1. #1
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788

    Changing the style of a MDI child window

    How would I change the style of a child window in a MDI Application?

    What I want is to do disable the minimize, maximize and close buttons. Basically, it must just be plain window with a title bar.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    How are you creating the child window? Is it via CreateWindow()? If yes, then just OR different windows styles until you get one that fits your design.

    Kuphryn

  3. #3
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788
    Quote Originally Posted by kuphryn
    How are you creating the child window? Is it via CreateWindow()? If yes, then just OR different windows styles until you get one that fits your design.

    Kuphryn
    No, im using the CreateMDIWindow() function, and the only valid styles that are available are :

    WS_MINIMIZE
    Creates an MDI child window that is initially minimized.
    WS_MAXIMIZE
    Creates an MDI child window that is initially maximized.
    WS_HSCROLL
    Creates an MDI child window that has a horizontal scroll bar.
    WS_VSCROLL
    Creates an MDI child window that has a vertical scroll bar.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    CreateMDIWindow()

    Read the dwStyle part...

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  2. Child window with active (highlighted) title bar: Possible?
    By JasonD in forum Windows Programming
    Replies: 7
    Last Post: 10-16-2003, 06:43 AM
  3. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  4. child windows
    By face_master in forum Windows Programming
    Replies: 14
    Last Post: 03-01-2002, 07:08 AM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM