Solved

Show/Hide Controls on Property Page

Posted on 1997-12-30
1
199 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Installing Microsoft R server on REDHAT or SUSE Linux 4 131
Replacement selected text 2 57
Process filename extension 3 172
Detect CR LF to each line 12 152
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…
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.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

947 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

22 Experts available now in Live!

Get 1:1 Help Now