Disabling maximize button and movable border

This is a discussion on Disabling maximize button and movable border within the Windows Programming forums, part of the Platform Specific Boards category; I want to disable two things on then main window: the maximize button at the top right hand corner, and ...

  1. #1
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584

    Disabling maximize button and movable border

    I want to disable two things on then main window: the maximize button at the top right hand corner, and I don't want the user to be able to resize the border. How would I do this? Thanks!

    Garfield
    1978 Silver Anniversary Corvette

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    creat your window using these as the only style(note this does not mean ex styles)

    WS_SYSMENU

    this will make a non resizable window with only a close box.
    Last edited by no-one; 01-26-2002 at 01:42 PM.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Originally posted by no-one
    creat your window using these as the only style(note this does not mean ex styles)

    WS_SYSMENU

    this will make a non resizable window with only a close box.
    But, what if I don't want to disable the minimize button? Thanks!

    Garfield
    1978 Silver Anniversary Corvette

  4. #4
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    then add an | WS_MINIMIZEBOX to the style.

    ::edit unfortunatly a disabled maximise button appears, i look into a way of geting rid of it.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  5. #5
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Originally posted by no-one
    then add an | WS_MINIMIZEBOX to the style.

    ::edit unfortunatly a disabled maximise button appears, i look into a way of geting rid of it.
    Thanks!

    Garfield
    1978 Silver Anniversary Corvette

  6. #6
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    >> ::edit unfortunatly a disabled maximise button appears, i look into a way of geting rid of it. <<

    As long as it appears grayed-out, that is good. Thanks again!
    1978 Silver Anniversary Corvette

  7. #7
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    ok then, your welcome.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Disabling "X" button on Window
    By Boomba in forum Windows Programming
    Replies: 3
    Last Post: 06-14-2003, 02:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21