|
-
July 25th, 2002, 11:23 AM
#1
PropertySheets :: MFC
Hi.
I have a propertysheet with a multiple propertypages. I would like get two functions working.
1) enable/disable default buttons (IDOK, IDCANCEL, ID_APPLY_NOW) in the propertypage.
2) be notified when the user navigate to and from different propertypage. If possible set the active propertypage programmically.
Okay. I believe this is the way to enable/disable the default buttons of a propertysheet from within the propertysheet.
-----
// disable the OK button
GetDlgItem(IDOK)->EnableWindow(FALSE);
-----
However, the code above does not work from within a propertypage. Is there a way to accomplish the above without sending a message to main frame?
I have no idea on what message to catch as the user navigates to and from propertypages.
Thanks,
Kuphryn
-
July 25th, 2002, 11:51 AM
#2
GetParent()->GetDltItem(IDOK)->)->EnableWindow(FALSE);
-
July 25th, 2002, 12:20 PM
#3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|