OCPFIPARAMS structure (olectl.h)

Contains parameters used to invoke a property sheet dialog box through the OleCreatePropertyFrameIndirect function.

Syntax

typedef struct tagOCPFIPARAMS {
  ULONG     cbStructSize;
  HWND      hWndOwner;
  int       x;
  int       y;
  LPCOLESTR lpszCaption;
  ULONG     cObjects;
  LPUNKNOWN *lplpUnk;
  ULONG     cPages;
  CLSID     *lpPages;
  LCID      lcid;
  DISPID    dispidInitialProperty;
} OCPFIPARAMS, *LPOCPFIPARAMS;

Members

cbStructSize

The size of the structure, in bytes.

hWndOwner

Handle to the parent window of the resulting property sheet dialog box.

x

Horizontal position for the dialog box relative to hWndOwner, in pixels.

y

Vertical position for the dialog box relative to hWndOwner, in pixels.

lpszCaption

Pointer to an OLESTR that contains the caption of the dialog.

cObjects

Number of object pointers passed in lplpUnk.

lplpUnk

Array of IUnknown pointers on the objects for which this property sheet is being invoked. The number of elements in the array is specified by cObjects. These pointers are passed to each property page through IPropertyPage::SetObjects.

cPages

Number of property pages specified in lpPages.

lpPages

Pointer to an array of size cPages containing the CLSIDs of each property page to display in the property sheet.

lcid

Locale identifier for the property sheet. This value will be returned through IPropertyPageSite::GetLocaleID.

dispidInitialProperty

Property that is highlighted when the dialog box is made visible.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header olectl.h

See also

IPropertyPage::SetObjects

IPropertyPageSite::GetLocaleID

OLESTR

OleCreatePropertyFrameIndirect