Solved

Show/Hide Controls on Property Page

Posted on 1997-12-30
1
198 Views
Last Modified: 2013-11-20
I have a property page where I want user could change a value in combo box. Depending on the parameter he chose I have to hide some controls specific for old parameter value and show the new ones (it's very similar to Project\Settings.. sheet in Visual C++ when you change Category on C/C++ page). There are a lot of controls that must be located in the same place. I realize how to hide and show controls but can't catch how to create all these controls on one page in Resource Editor not overlapping them to be able to have access (edit, rename) to each control.

0
Comment
Question by:dimach
1 Comment
 
LVL 1

Accepted Solution

by:
richhxb earned 150 total points
Comment Utility
I have used Spy++ to study the Project\Settings sheet in
Visual C++, and I found when you change Category on
C/C++ page, the controls changed, because the region
in which these controls located is a seperated dialog.
So I think if you want to implement your application just
like Visual C++, you should also use several modeless
dialogs to contain diffrent controls, and create these
dialogs dynamically when you create your property page.
You must create these dialogs at the same location with
the same size, and use SetWindowPos to show one of
them to the topmost when user change some options.

You can dowbload a MFC sample called "PSView" from
Microsoft's site, it uses some technologys similar to your
program, especially for creating some modeless dialogs
at the same location and switching them according to
user's options.

I hope these informations will be useful for you.





0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

10 Experts available now in Live!

Get 1:1 Help Now