Поделиться через


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 
);

Параметры

  • 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.

Возвращаемое значение

Nonzero if the call is successful; otherwise 0.

Заметки

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.

Требования

Header: afxctl.h

См. также

Основные понятия

COleControl Class

COleControl Members

Hierarchy Chart