Class IDumPropPage (unit Prop_Dum) |
ICLSID_PropertySheet
Constructors |
Functions |
Function IDumPropPage.
Properties |
Events |
Variables |
Constructors |
Functions |
Function HandleCreateSheet(SheetId:Integer;var PPSP: TPropSheetPage):Boolean;Override; Procedure HandleReleaseSheet(SheetId:Integer;var PPSP: TPropSheetPage);Override;
Function IDumPropPage.HandleCreateSheet(SheetId:Integer;var PPSP: TPropSheetPage):Boolean; Begin //called only when clicked Result:=True; End; Procedure IDumPropPage.HandleReleaseSheet(SheetId:Integer;var PPSP: TPropSheetPage); Begin //called always End; Function IDumPropPage.Handle_WM_Unknown(SheetId:Integer;hwndDlg: HWnd; Msg: UINT; wParam: wParam;lParam: LPARAM):Bool; Begin Result:=False; End;
IMPORTANT INFORMATION ABOUT ICLSID_PropertySheet.AddPropertyPage used in ICLSID_PropertySheet.PropertySheetAddPages TPropSheetPageA = record dwSize: Longint; dwFlags: Longint; hInstance: THandle; case Integer of 0: ( pszTemplate: PAnsiChar); 1: ( pResource: Pointer; case Integer of 0: ( hIcon: THandle); 1: ( pszIcon: PAnsiChar; pszTitle: PAnsiChar; pfnDlgProc: Pointer; lParam: Longint; pfnCallback: TFNPSPCallbackA; pcRefParent: PInteger)); end; TPropSheetPage = TPropSheetPageA; The PROPSHEETPAGE structure defines a page in a property sheet. Members *** dwSize Size,in bytes, of the structure. The size includes any extra application-defined data at the end of the structure. *** Do not use dwSize this is assigned in ICLSID_PropertySheet.AddPropertyPage *** dwFlags Array of flags that indicate which other structure members to use and which to ignore. This member can be a combination of the following values: Value Meaning *** PSP_DEFAULT Uses the default meaning for all structure members. *** Do not use PSP_DEFAULT this is assigned in ICLSID_PropertySheet.AddPropertyPage *** PSP_DLGINDIRECT Uses pResource instead of pszTemplate. That is, the template for the property sheet dialog box is supplied in memory, not loaded from a resource. PSP_HASHELP Enables the property sheet Help button when this page is active. *** PSP_USECALLBACK Calls the function specified by pfnCallback when creating or destroying the property sheet page defined by this structure. *** Do not use PSP_USECALLBACK this is assigned in ICLSID_PropertySheet.AddPropertyPage *** PSP_USEHICON Uses hIcon as the small icon on the tab for the page. PSP_USEICONID Uses pszIcon as the name of the icon resource to load and use as the small icon on the tab for the page. *** PSP_USEREFPARENT Maintains the reference count specified by pcRefParent for the lifetime of the property sheet page created from this structure. *** Do not use PSP_USEREFPARENT this is assigned in ICLSID_PropertySheet.AddPropertyPage *** PSP_USETITLE Uses pszTitle as the title of the property sheet dialog box instead of the title stored in the dialog box template. PSP_RTLREADING Windows 95 only: When this page is active, displays the text of pszTitle using right-to-left reading order on Hebrew or Arabic systems. hInstance Handle to the instance from which to load the dialog box template, icon, or title string resource. pszTemplate Dialog box template to use to create the page. This member can specify either the resource identifier of the template or the address of a string that specifies the name of the template. If dwFlags includes the PSP_DLGINDIRECT value, this member is ignored. pResource Pointer to a dialog box template in memory. If dwFlags does not include the PSP_DLGINDIRECT value, this member is ignored. hIcon Handle to the icon to use as the small icon in the tab for the page. If dwFlags does not include the PSP_USEHICON value, this member is ignored. pszIcon Icon resource to use as the small icon in the tab for the page. This member can specify either the identifier of the icon resource or the pointer to the string that specifies the name of the icon resource. If dwFlags does not include the PSP_USEICONID value, this member is ignored. pszTitle Title of the property sheet dialog box. This title overrides the title specified in the dialog box template. This member can specify either the identifier of a string resource or the pointer to a string that specifies the title. If dwFlags does not include the PSP_USETITLE value, this member is ignored. *** pfnDlgProc Pointer to the dialog box procedure for the page. The dialog box procedure must not call the EndDialog function. *** Do not use pfnDlgProc this is assigned in ICLSID_PropertySheet.AddPropertyPage *** Function ICLSID_PropertySheet.Handle_WM_Command(SheetId:Integer;hwndDlg: HWnd; Msg: UINT; wParam: wParam;lParam: LPARAM):Bool;Virtual;StdCall; Function ICLSID_PropertySheet.Handle_WM_Notify(SheetId:Integer;hwndDlg: HWnd; Msg: UINT; wParam: wParam;lParam: LPARAM):Bool;Virtual;StdCall; Function ICLSID_PropertySheet.Handle_WM_Unknown(SheetId:Integer;hwndDlg: HWnd; Msg: UINT; wParam: wParam;lParam: LPARAM):Bool;Virtual;StdCall; *** lParam Application-defined data. *** Do not use lParam this is assigned in ICLSID_PropertySheet.AddPropertyPage *** TPropSheetId = Class FSheet:Integer; >>> ICLSID_PropertySheet.self FId:Integer; >>> user sheetID Public Constructor Create(Id,Sheet:Integer); end; *** pfnCallback Pointer to an application-defined callback function that is called when the page is created and when it is about to be destroyed. For more information about the callback function, see PropSheetPageProc. If dwFlags does not include the PSP_USECALLBACK value, this member is ignored. *** Do not use pfnCallback this is assigned in ICLSID_PropertySheet.AddPropertyPage *** Function ICLSID_PropertySheet.HandleCreateSheet(SheetId:Integer;var PPSP: TPropSheetPage):Boolean;Virtual;StdCall; Procedure ICLSID_PropertySheet.HandleReleaseSheet(SheetId:Integer;var PPSP: TPropSheetPage);Virtual;StdCall; *** pcRefParent Pointer to the reference count value. If dwFlags does not include the PSP_USERREFPARENT value, this member is ignored. *** Do not use pcRefParent this is assigned in ICLSID_PropertySheet.AddPropertyPage *** Remarks When the PropertySheet function creates the page, the dialog box procedure for the page receives a WM_INITDIALOG message. The lParam parameter of this message points to the PROPSHEETPAGE structure used to create the page. Function ICLSID_PropertySheet.Handle_WM_INITDIALOG(SheetId:Integer;hwndDlg: HWnd; Msg: UINT; wParam: wParam;lParam: LPARAM):Bool;Virtual;StdCall;
Properties |
Events |
Variables |