Solved

Show/Hide Controls on Property Page

Posted on 1997-12-30
1
200 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
ID: 1313227
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
not able to insert into temp table 68 162
Expand to include initial dialog with two choices. 9 77
iSeries DB2 Query 2 95
Message not shown 5 49
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

785 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