CToolBar::Create
CToolBar::Create
Amamatthew 发表于4年前
CToolBar::Create
  • 发表于 4年前
  • 阅读 15
  • 收藏 0
  • 点赞 0
  • 评论 0

【腾讯云】如何购买服务器最划算?>>>   

摘要: 适用于 Microsoft Visual Studio 2005/.NET Framework 2.0

CToolBar::Create

This member function creates a Windows toolbar (a child window) and associates it with the CToolBar object.

virtual BOOL Create(
   CWnd* pParentWnd,
   DWORD dwStyle = WS_CHILD |  WS_VISIBLE | CBRS_TOP,
   UINT nID = AFX_IDW_TOOLBAR 
);

   Parameters

  • pParentWnd

  • Pointer to the window that is the toolbar's parent.

  • dwStyle

  • The toolbar style. Additional toolbar styles supported are:

    • CBRS_TOP   Control bar is at top of the frame window.

    • CBRS_BOTTOM   Control bar is at bottom of the frame window.

    • CBRS_NOALIGN   Control bar is not repositioned when the parent is resized.

    • CBRS_TOOLTIPS   Control bar displays tool tips.

    • CBRS_SIZE_DYNAMIC   Control bar is dynamic.

    • CBRS_SIZE_FIXED   Control bar is fixed.

    • CBRS_FLOATING   Control bar is floating.

    • CBRS_FLYBY   Status bar displays information about the button.

    • CBRS_HIDE_INPLACE   Control bar is not displayed to the user.

  • nID

  • The toolbar's child-window ID.

 Return Value

Nonzero if successful; otherwise 0.

 Remarks

It also sets the toolbar height to a default value.


共有 人打赏支持
粉丝 66
博文 719
码字总数 76443
×
Amamatthew
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: