Disable Resize Window :: MFC

This is a discussion on Disable Resize Window :: MFC within the Windows Programming forums, part of the Platform Specific Boards category; Hi. I have been wondering about the possibility of *disabling* resize feature in a window. For example, when a window ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348

    Disable Resize Window :: MFC

    Hi.

    I have been wondering about the possibility of *disabling* resize feature in a window. For example, when a window is in restore setting, the user can change the size of the window via dragging one of its four size or four corners. I there a way to disable that feature completely? I am basically describing a dialog window without having to derive the class from CDialog.

    In the program I am working on, I have disabled the maximize feature. The window stays restored throughout. However, the user can resize it. I would like to disable that feature too. The bottom line is the window looks better if it remains in its original settings (size).

    Thanks,
    Kuphryn

  2. #2
    Alipha
    Guest
    (I'm using VC++ 4.0, SE)

    Just go into the properties of the window and then select the Styles tab and change the border from resizing to something else?

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    kilowatt posted a quick and easy way, which you mentioned at the end. He said to "remove the WS_THICKFRAME style, and
    replace it with the WS_BORDER style." The technique works perfectly.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 09:23 AM
  2. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  3. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 11:17 AM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  5. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 11:14 PM

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