Questions tagged [cpropertysheet]

26 questions
0
votes
2 answers

How to remove ok,cancel and apply button from property sheets

So I tried using this code and it's not working: CButton *btnApply; btnApply = reinterpret_cast(GetDlgItem(IDOK)); btnApply->ShowWindow(FALSE); Thanks in advance.
Rani
  • 21
  • 1
0
votes
2 answers

CPropertyPage dialogue OnOk should not close the dialogue if there is an error

I have a class which inherits from CPropertyPage class. I have a OnOk() method and a OnKillActive() method. Whenever I press Ok on the dialogue. OnKillActive() gets called but OnOk() is never called. The problem is depending on a condition I do not…
Arnoj
  • 79
  • 8
0
votes
0 answers

Handle to window for PropertySheet

The below code, creating a Property Sheet, works without problem in an Application File. ....... CProp_Sheet Pr_Sheet(_T("PS")); CPr_Page_1 Pr_Page_1; CPr_Page_2 Pr_Page_2; Pr_Sheet.AddPage(&Pr_Page_1); Pr_Sheet.AddPage(&Pr_Page_2); m_pMainWnd =…
ZYX
  • 69
  • 1
  • 8
0
votes
0 answers

MFC: CDialog from CPropertyPage

I have CPropertySheet which contain multiple CPropertyPage as tabs. In one of the CPropertyPage I have a button and clicking on the button launches a CDialog. I am trying to get the control to CPropertyPage calling GetParent() method inside the…
Anshu Goel
  • 31
  • 3
0
votes
1 answer

'embedding' wxWidgets in CPropertyPage

I am responsible for a fair-sized Windows product with lots of legacy MFC code. I don't have the time to convert the entire product to wxWidgets, but have been implementing new dialogs with wxWidgets. I have the need to update a single tab…
0
votes
1 answer

Removing gap underneath pages on CPropertySheet / Tabbed Dialog

I have a CPropertySheet that I am using to show three CPropertyPages. I removed the default "Apply" and "Help" buttons. My problem comes that now that they are removed, I have a large gap where they were once located. Is there a way to remove…
Kyle Williamson
  • 2,251
  • 6
  • 43
  • 75
0
votes
1 answer

CPropertySheet only shows for a second

I am trying to add a CPropertySheet with three CPropertyPages to my MFC application. My problem is that the Property sheet only shows for less than a second then closes. When I open a different modal dialog after creating the CPropertySheet, the…
Kyle Williamson
  • 2,251
  • 6
  • 43
  • 75
0
votes
1 answer

How to hide propertysheet?

I had a propertysheet where I am facing an issue in hiding the sheet.I will briefly explain what I had done. In the PropertySheet OnWizardFinish() I am trying hide the sheet and do the following , BOOL CSecondEditpage::OnWizardFinish() { BOOL…
Siva
  • 1,281
  • 2
  • 19
  • 41
0
votes
1 answer

Issue in drawing color on propertysheet footer?

I designed a property sheet and painted its footer to some gradient in the OnPaint() event. The footer looks like as below.Observe the button area circled in red colour. In the OnPaint I was doing as follows, //CMySheet is derived from…
Siva
  • 1,281
  • 2
  • 19
  • 41
0
votes
1 answer

MFC: How to Identfy if Dialog was created using CPropertySheet or CTabCtrl

In reference to this question:Which is prefered CTabCtrl vs CPropertySheet I have a DDK that uses MFC which I am new to. The basic example from the DDK implements a simple dialog box with 3 tabs with the "Ok" and "Cancel" button on the right side…
justin
  • 243
  • 2
  • 6
  • 15
0
votes
1 answer

Update Property Page or Tab Control Layout

After changing the text in a tab control's tab header, how do I tell it to recalculate the layout of the children (e.g., if the new tabs take up two rows)? I am changing the tab text like this, from within a property page: TC_ITEM ti; ti.mask =…
Nick
  • 13,238
  • 17
  • 64
  • 100
1
2