News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

PropertySheet

Started by ragdog, April 15, 2011, 09:14:13 AM

Previous topic - Next topic

ragdog

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?

dedndave

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.

ragdog

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

Tedd

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
No snowflake in an avalanche feels responsible.