Solved

Show/Hide Controls on Property Page

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

724 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