You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on writing an MMC Snap-in, and I'd like to use winsafe to handle property sheet pages. All MMC wants is for you to create your property sheet pages using the Win32 CreatePropertySheetPage function, then pass the returned HPROPSHEETPAGE to the supplied COM interface (IPropertySheetCallback). It seems like property sheet pages are simply modeless dialog boxes presented in a tabular format, so I think that adapting should be simple enough.
I briefly tried extending the library, creating a PropsheetPage struct similar to the RawModeless struct, but I still haven't traced how everything would fit together. I could continue to try implementing it, but it would help if I could get some guidance on a preferred structure for the implementation.
The text was updated successfully, but these errors were encountered:
I never used property sheets before, but as far as I could see, its implementation isn't straightforward... so far, I found this example, is it enough for your needs? Do you have a better one?
I just uploaded a barebones example of making a property sheet page here: propsheetpage-example.
What I was thinking winsafe could do is give me the same type of abstraction as a normal window or dialog from resource id, except instead of running the dialog directly, it could give me an HPROPSHEETPAGE. The CreatePropertySheetPage function really just needs the DlgProc address and the resource ID for the dialog. It could be exactly like in this example, except we could expose a .get_hpropsheetpage from the wnd member.
I'm working on writing an MMC Snap-in, and I'd like to use winsafe to handle property sheet pages. All MMC wants is for you to create your property sheet pages using the Win32
CreatePropertySheetPage
function, then pass the returnedHPROPSHEETPAGE
to the supplied COM interface (IPropertySheetCallback). It seems like property sheet pages are simply modeless dialog boxes presented in a tabular format, so I think that adapting should be simple enough.I briefly tried extending the library, creating a
PropsheetPage
struct similar to theRawModeless
struct, but I still haven't traced how everything would fit together. I could continue to try implementing it, but it would help if I could get some guidance on a preferred structure for the implementation.The text was updated successfully, but these errors were encountered: