• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 505
  • Last Modified:

Control over apply button and catching Ok and cancel in CPropertySheet

Hello All,
 I have an MFC application, whose main window is a derivative of CPropertySheet. I would like to know how I enable and disable the Apply button as I change items in the Property pages. Also where do I overide the OK and Cancel methods to do what I want. The MFC classwizard doesn't seem to offer me any help.

Thanks in advance,
Nicholas Waltham
0
nwaltham
Asked:
nwaltham
1 Solution
 
cdesignerCommented:
   CPropertySheet dialog;
    dialog.m_psh.dwFlags

dwFlags contains all propertes of "PropertySheet"
0
 
chensuCommented:
>how I enable and disable the Apply button as I change items in the Property pages

Call CPropertyPage::SetModified to enable or disable the Apply button.

>where do I overide the OK and Cancel methods to do what I want.

CPropertyPage::OnOK, CPropertyPage::OnApply, CPropertyPage::OnReset, CPropertyPage::OnCancel.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now