Udostępnij za pośrednictwem


COleControl::OnProperties

Called by the framework when the control's properties verb has been invoked by the container.

virtual BOOL OnProperties(
   LPMSG lpMsg,
   HWND hWndParent,
   LPCRECT lpRect 
);

Parameters

  • lpMsg
    A pointer to the Windows message that invoked the verb.

  • hWndParent
    A handle to the parent window of the control.

  • lpRect
    A pointer to the rectangle used by the control in the container.

Return Value

Nonzero if the call is successful; otherwise 0.

Remarks

The default implementation displays a modal property dialog box.

You can also use this function to cause the display of your control's property pages. Make a call to the OnProperties function, passing the handle of your control's parent in the hWndParent parameter. In this case, the values of the lpMsg and lpRect parameters are ignored.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

Other Resources

COleControl Members