The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on April 15, 2011, 09:14:13 AM

Title: PropertySheet
Post by: ragdog on April 15, 2011, 09:14:13 AM
Hi

I use a PropertySheet control, and try to change the button text NEXT ,BACK,FINISH
Now is the question how i can get the hWnd of the PropertySheet for get the Buttons Handle

Without FindWindow?
Title: Re: PropertySheet
Post by: dedndave on April 15, 2011, 10:33:09 AM
CreatePropertySheetPage returns a handle

or

QuoteBy default, the PropertySheet function creates a modal dialog box.
If the dwFlags member of the PROPSHEETHEADER structure specifies
the PSH_MODELESS flag, PropertySheet creates a modeless dialog
box and returns immediately after it is created. In this case, the
PropertySheet return value is the window handle to the modeless dialog box.
Title: Re: PropertySheet
Post by: ragdog on April 15, 2011, 11:15:53 AM
yes this is correct


invoke CreatePropertySheetPage,addr PropSheet
mov hPs[0],eax
invoke CreatePropertySheetPage,addr PropSheet[sizeof PROPSHEETPAGE]
mov hPs[4],eax
invoke CreatePropertySheetPage,addr PropSheet[(sizeof PROPSHEETPAGE)*2]
mov hPs[8],eax


But i need the handle of NEXT BACK Finish button
Title: Re: PropertySheet
Post by: Tedd on April 15, 2011, 02:25:29 PM
Plain property-sheets are for making settings so they only have Apply, OK, Cancel buttons.
I presume what you want is a 'wizard,' which will have Back, Next, Cancel/Finish buttons - you just respond to notifications, and alter the style to set the appropriate buttons.

Read thoroughly: http://msdn.microsoft.com/en-us/library/bb774544%28v=VS.85%29.aspx