Solved

Minimizing PropertySheet dialogs

Posted on 2003-11-17
2
489 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

707 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