Home COM GDI+ WebBrowser Data Access

Controls and Property Pages

 

Functions

 

OleCreatePropertyFrame

OleCreatePropertyFrameIndirect
 

 

OleLoadPicturePath

OleTranslateColor

 

OleCreatePropertyFrame

 

Invokes a new property frame, that is, a property sheet dialog box, whose parent is hwndOwner, where the dialog is positioned at the point (x,y) in the parent window and has the caption lpszCaption.

 

The property pages to be displayed are identified with lpPageClsID, which is an array of cPages CLSID values. The objects that are affected by this property sheet are identified in lplpUnk, an array of size cObjects containing IUnknown pointers.

 

This function always creates a modal dialogbox and does not return until the dialog box is closed.

 

 

DECLARE FUNCTION OleCreatePropertyFrame _
   LIB "olepro32.dll" ALIAS _
   "OleCreatePropertyFrame" ( _
   BYVAL hWndOwner AS DWORD, _
   BYVAL x AS DWORD, _
   BYVAL y AS DWORD, _
   BYVAL lpszCaption AS STRING,' Null-terminated unicode string
   BYVAL cObjects AS DWORD, _
   BYVAL lplpUnk AS DWORD, _
   BYVAL cPages AS DWORD, _
   BYVAL lpPageClsID AS GUID PTR, _
   BYVAL lcid AS DWORD, _
   BYVAL dwReserved AS DWORD, _
   BYVAL lpvReserved AS DWORD _
) AS LONG

 

 

OleCreatePropertyFrameIndirect

 

Creates a property frame, that is, a property sheet dialog box, based on a structure (OCPFIPARAMS) that contains the parameters, rather than specifying separate parameters as when calling OleCreatePropertyFrame.

 

 

DECLARE FUNCTION OleCreatePropertyFrameIndirect _
   LIB "OLEPRO32.DLL" ALIAS _
   "OleCreatePropertyFrameIndirect" ( _
   BYREF pParams AS OCPFIPARAMS _
) AS LONG

 

 

OleLoadPicturePath

 

Creates a new picture object and initializes it from the contents of a stream. This is equivalent to calling OleCreatePictureIndirect(NULL, ...) followed by IPersistStream::Load.

 

 

DECLARE FUNCTION OleLoadPicturePath _
   LIB
"OLEPRO32.DLL" _
   ALIAS
"OleLoadPicturePath" ( _
   BYVAL
szURLorPath AS STRING, _  ' Null-terminated unicode string
   BYVAL
punkCaller AS DWORD, _
   BYVAL
dwReserved AS DWORD, _
   BYVAL
clrReserved AS DWORD, _
   BYREF
riid AS GUID, _
   BYREF
ppvRet AS DWORD _
) AS LONG

 

 

OleTranslateColor

 

Converts an OLE_COLOR type to a COLORREF.

 

 

DECLARE FUNCTION OleTranslateColor _
   LIB
"OLEPRO32.DLL" _
   ALIAS
"OleTranslateColor" ( _
   BYVAL
clr AS DWORD, _
   BYVAL
hpal AS DWORD, _
   BYREF
pcolorref AS DWORD _
) AS LONG
 

 

Page last updated on Tuesday, 29 August 2006 04:26:08 +0200