Solved

Minimizing PropertySheet dialogs

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 47
Question regarding Copy/Paste 16 98
Complete beginner needs help making a cron job 9 131
string initialization in java 11 117
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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