PropSheet_GetCurrentPageHwndPropSheet_GetCurrentPageHwnd*
*Contents  *Index  *Topic Contents
*Previous Topic: PropSheet_Changed
*Next Topic: PropSheet_GetTabControl

PropSheet_GetCurrentPageHwnd


HWND PropSheet_GetCurrentPageHwnd(
    HWND hDlg 
);		

Retrieves a handle to the window of the current page of a property sheet. You can use this macro or send the PSM_GETCURRENTPAGEHWND message explicitly.

hDlg
Handle to the property sheet.

Use the PropSheet_GetCurrentPageHwnd macro with modeless property sheets to determine when to destroy the dialog box. When the user clicks the OK or Cancel button, PropSheet_GetCurrentPageHwnd returns NULL, and you can then use the DestroyWindow function to destroy the dialog box.

See also PropertySheet


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.