efauquem
asked on
MFC : adding a minimize box in a property sheet
Hi,
I'd like to add a minimize box in my property sheet.
I managed to have one displayed by calling ModifyStyle(0,WS_MINIMIZEB OX,0) in my property sheet class' InitDialog member function, but clicking on it won't make the window minimized !!
Any clue on how to solve this ?
I'd like to add a minimize box in my property sheet.
I managed to have one displayed by calling ModifyStyle(0,WS_MINIMIZEB
Any clue on how to solve this ?
ASKER
It is a standalone propertysheet application.
The property sheet is called by DoModal( ), so I'm afraid OnCreate( ) won't get called...
The property sheet is called by DoModal( ), so I'm afraid OnCreate( ) won't get called...
What i ment to say:
Add a handler for the WM_CREATE message.
Add a handler for the WM_CREATE message.
ASKER
I added one, but ad OnCreate() (WM_CREATE handler) isn't called when I use DoModal (), it doesn't change anything :
I have the minimize box but it doesn't minimize anything ...
I have the minimize box but it doesn't minimize anything ...
The virtual function OnCreate in NOT THE SAME as the handler for the WM_CREATE message!.
The WM_CREATE is sendt to any window when it is beeing created.
The WM_CREATE is sendt to any window when it is beeing created.
ASKER
I think they are the same.
When you use Visual C++ to add a windows message handler for WM_CREATE, it creates a OnCreate( ) function.
When you use Visual C++ to add a windows message handler for WM_CREATE, it creates a OnCreate( ) function.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That works just great !
Eric
Eric
Is it a stand-alone propertysheet app ?
If i create a property sheet, override OnCreate and modifies the
style there, then i can minimize it (but the mainframe window is minimized as well !!!).