共用方式為


CToolTipCtrl::SetToolRect

Sets a new bounding rectangle for a tool.

void SetToolRect(
   CWnd* pWnd,
   UINT_PTR nIDTool,
   LPCRECT lpRect 
);

Parameters

  • pWnd
    Pointer to the window that contains the tool.

  • nIDTool
    ID of the tool.

  • lpRect
    Pointer to a RECT structure specifying the new bounding rectangle.

Requirements

Header: afxcmn.h

See Also

Concepts

CToolTipCtrl Class

CToolTipCtrl Members

Hierarchy Chart

CToolTipCtrl::GetToolInfo