Help with making minimum size work for a dialog...

Discussion in 'PC Hardware, Software and Displays' started by zsouthboy, Nov 5, 2003.

  1. zsouthboy

    Regular

    Joined:
    Aug 1, 2003
    Messages:
    563
    Likes Received:
    9
    Location:
    Derry, NH
    I tried using the information here in my existing dialog, but it didn't work, so I tried making a blank new project dialog box, and it still doesn't work.


    What am I doing wrong? I followed the instructions.

    Here is the blank dialog box, with the above code used.
     
  2. darkblu

    Veteran

    Joined:
    Feb 7, 2002
    Messages:
    2,642
    Likes Received:
    22
    MFC strictly sucks. it's among the worst OO, message-driven frameworks ever devised by humas. avoid whenever possible. as about what you did wrong, you've omitted the WM_GETMINMAXINFO from CWTFDlg's mesage map* - a typical mistake under MFC.


    * it should look like
    Code:
    BEGIN_MESSAGE_MAP(CWTFDlg, CDialog)
    	//{{AFX_MSG_MAP(CWTFDlg)
    	ON_WM_SYSCOMMAND()
    	ON_WM_PAINT()
    	ON_WM_QUERYDRAGICON()
    	ON_WM_GETMINMAXINFO()
    	//}}AFX_MSG_MAP
    END_MESSAGE_MAP()
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...