Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Property Sheet apply button 1

Status
Not open for further replies.

MrSparkle

Programmer
May 19, 2001
9
0
0
GB
Hi all,

I'm having trouble enabling the Apply button in a property sheet. I know that I need to use the PropSheet_Changed macro, the problem is that I don't know how to get the two window handles (of the page and the property sheet). One of them must be passed to my function (hDlg) but I don't know how to get the other.

MSDN info is sparse as usual, so I've come here for help. Anyone know how to do it? (I don't want to use MFC!)


Thanks,
Chris
 
Use PSM_CHANGED and PSM_UNCHANGED to enable/disable the Apply button.
When a page receives the input through one of its controls indicating that the user has edited a property then you should send the PSM_CHANGED message to the Property Sheet (you already have the handle and also access to the array of handles of all pages).
In this case the wParam contains the handle of the page that has changed.

-obislavu-

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top