VerySource

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 442|回复: 1

怎么让浮动工具栏竖着显示

[复制链接]

2

主题

3

帖子

4.00

积分

新手上路

Rank: 1

积分
4.00
发表于 2020-1-3 19:40:01 | 显示全部楼层 |阅读模式
每次它都自动横着显示
代码如下:
        if (!m_tool.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE |CBRS_FLOATING|CBRS_SIZE_DYNAMIC|CBRS_TOOLTIPS   ) ||
                !m_tool.LoadToolBar(IDR_TOOLBAR1))
        {
                TRACE0("Failed to create toolbar\n");
                return -1;      // fail to create
        }

       
       
m_tool.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);


CPoint point(100,100);
ClientToScreen(&point);
FloatControlBar(&m_tool,point);
回复

使用道具 举报

0

主题

30

帖子

22.00

积分

新手上路

Rank: 1

积分
22.00
发表于 2020-1-3 22:57:01 | 显示全部楼层
CBRS_ALIGN_LEFT   Allows the control bar to be docked to the left side of the client area of a frame window.


CBRS_ALIGN_RIGHT   Allows the control bar to be docked to the right side of the client area of a frame window.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

快速回复 返回顶部 返回列表