We help IT Professionals succeed at work.

Property Sheet Minimize and Maximize buttons

malik_mumtaz
malik_mumtaz asked
on
I am working with property sheets and i provide minimize and maximize buttons.

If some body knows how then please tell me.

Comment
Watch Question

Commented:
What about using the styles WS_MAXIMIZEBOX | WS_MINIMIZEBOX during the creation of property sheet ?
m.
Commented:
Hmmm, and don't forget to rewrite WM_NCCREATE message to:

BOOL CMyPropertySheet::OnNcCreate(LPCREATESTRUCT lpCreateStruct)
{
     DWORD dwStyle = WS_MINIMIZEBOX | WS_MAXIMIZEBOX;
     ModifyStyle(DS_MODALFRAME, dwStyle);
     return (BOOL)Default();
}

Author

Commented:
Thanks for help

Explore More ContentExplore courses, solutions, and other research materials related to this topic.