Questions tagged [cpropertysheet]
26 questions
8
votes
1 answer
Which is preferred CTabCtrl vs. CPropertySheet in MFC?
I don't know how to use both of them. So a sample code with pros and cons is perfect. Which one is preferred? Why?

knaser
- 1,421
- 7
- 19
- 16
6
votes
1 answer
Dynamically change the tab labels in a CPropertySheet
I want to instantiate 2 property pages from the same class and template, because the settings they show are basically the same.
CCPUSettingsSheet sheet;
CCPUSettingsPage cpucore1, cpucore2;
sheet.AddPage(&cpucore1);
sheet.AddPage(&cpucore2);
The…

sashoalm
- 75,001
- 122
- 434
- 781
6
votes
5 answers
How to delete the default Help button in CPropertySheet in MFC?
I am using CPropertySheet class for my design in MFC application,normally in CPropertySheet there would be 4 default buttons..I want to hide/delete the HELP button..I tried the following..but its not working/nither responding..I had this written in…

kiddo
- 1,596
- 7
- 31
- 60
4
votes
1 answer
Run function after dialog is shown
I am using a MFC wizard with CPropertyPages.
Is there any way of calling a function after the page is shown?
At the moment the function starts when I hit the "Next"-button of the previous page.
I tried to call the function from OnShowWindow,…

Dave Chandler
- 651
- 6
- 17
2
votes
1 answer
How to reorder the CPropertyPage inside a CPropertySheet
We have a CPropertySheet that have 5 CPropertyPage inside.
Let say we have something like this
1 2 3 4 5
Then, based on some business logic, when the user click refresh, we would like to have
1 5 2 3 4
We don't want to delete all the CPropertyPage…

Jean-François Côté
- 4,200
- 11
- 52
- 88
1
vote
1 answer
How can I define new colors in a CPropertySheet?
I'm trying to define new colors in some regions of a CPropertySheet (mfc libaries). What I've tried is to overload OnCtlColorand define a new background color. This methods works well but it doesn't colorize the region I want.
In the next image you…

RookieCoder
- 105
- 11
1
vote
1 answer
SetWindowPos() works for a dialog, but not in a CPropertyPage
I have a dialog of type CPropertyPage, where within the dialog I'm showing a CPropertySheet object to display a couple of tabs.
Initially, when I was testing this dialog, I had it running as a separate dialog window (dialog.DoModal()). When I am…

captainjim
- 127
- 1
- 1
- 6
1
vote
2 answers
Adding a resize anchor to derived CMFCPropertySheet class
Thanks to the support of Stack Overflow I have been able to create my own CResizingMFCPropertySheet that supports resizing. Now, I went to add a resize anchor and I used this code:
void CResizingMFCPropertySheet::InitialiseResizeIcon()
{
CRect…

Andrew Truckle
- 17,769
- 16
- 66
- 164
1
vote
2 answers
Effect of destroying OK, CANCEL and HELP windows of a porperty sheet
I wanted to use a CPropertySheet based application for a project and I did not want those default OK, Cancel, Help and Apply buttons that come with a CPropertySheet class. Therefore, I destroyed those windows on OnInitDialog. Here is the code for…

Nikita Rana
- 41
- 1
- 6
1
vote
1 answer
Updating CPropertyPage on tab selection
I am looking for the best way to update a CPropertyPage once it is clicked. Currently, my pages receive it's information during OnInitDialog(). However, when the user does something on page one, it can effect what is on page two.
The only…

Kyle Williamson
- 2,251
- 6
- 43
- 75
1
vote
1 answer
How to properly change tabs on CPropertySheet
I have a CPropertySheet with three tabs. I have a different CPropertyPage class for each tab. When my CPropertySheet is loaded with the debugger, the first page is always shown correctly. However, when I click on any of the other tabs, the…

Kyle Williamson
- 2,251
- 6
- 43
- 75
1
vote
1 answer
Tool to create wizards in C++
The MFC concept (using PropertySheet / PropertyPages) to build a wizard has let me down many times and for several reasons. I googled the subject somewhat but could not turn up with any library or tool that would help me create my wizards…

user231757
- 31
- 4
1
vote
2 answers
How to delete the default button in CPropertySheet Wizard MFC application?
Hey guys..I am designing a set-up wizard using CPropertySheet and CpropertyPage in MFC application...I have completed the design but the thing is..In normal CProperty Sheet there are four default buttons "BACK NEXT FINISH HELP"...but I want only…

kiddo
- 1,596
- 7
- 31
- 60
1
vote
1 answer
Issue on adding ActiveX Controls in MFC CPropertySheet (Windows 7 64 bit and Windows 2008 Server)
I have a MFC application with CPropertPage and CPropertySheet. The PropertyPages are added into CPropertySheet at runtime.
I have added VB ActiveX UserControls (Which are created in VB 6.0) into PropertyPage at design time. This application is…

prakasam k
- 89
- 3
- 11
0
votes
1 answer
How to get the visible client rect of a CPropertySheet object?
I'm trying to change some colors of my MFC CPropertySheet object. I'm able to change the color of all regions I want. However, there's still one region I can't control. Here is an image of what I'm getting with my code.
As you can see, I can draw…

RookieCoder
- 105
- 11