?
Solved

Show/Hide Controls on Property Page

Posted on 1997-12-30
1
Medium Priority
?
217 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
[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
1 Comment
 
LVL 1

Accepted Solution

by:
richhxb earned 600 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

765 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