Solved

Minimizing PropertySheet dialogs

Posted on 2003-11-17
2
455 Views
Last Modified: 2013-11-20
Hi All,

I have a main dialog. This dialog has a property sheet. On this property sheet I have property pages. For design reasons, the property pages are dialog windows which have been inherited from CPropertyPage.

A CDialog,  you can minimize, maximize, etc ...
On a CPropertySheet / CPropertyPage you can not have a minimize / max box.

The question is HOW do I put a min/max box on a dialog inherited from a CPropertyPage.

Note that I can not change the design, ie: inherit the dialogs from something else.

Thanks
Peter
0
Comment
Question by:Pete2003
2 Comments
 
LVL 13

Expert Comment

by:SteH
ID: 9762509
I don't understand what you want to achieve: You select the property pages using the tab control. What should a minimize button on a property page do? I could understand the need to minimize the entire property sheet. But instead of minimizing a page you could just select another one. What is the difference in minimizing?
0
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 150 total points
ID: 9762510
Map WM_CREATE and add

int CYourPropDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    if (CPropertyPage ::OnCreate(lpCreateStruct) == -1)
        return -1;      

    // TODO: Add your specialized creation code here
    SetWindowLong(this->m_hWnd,GWL_STYLE,
        GetWindowLong(this->m_hWnd,GWL_STYLE) |
            WS_MINIMIZEBOX | WS_MAXIMIZEBOX);      

    return 0;
}

Good Luck
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to create frequencies of a variable from SAS dataset? 10 116
if loop error 4 77
sameEnds challenge 3 107
move a line in eclipse 3 60
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now