Solved

Minimizing PropertySheet dialogs

Posted on 2003-11-17
2
479 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 131
how do i create updater to My Activex application? 3 96
substring method in java 1 130
Making an alias 7 101
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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 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