| |

VerySource

 Forgot password?
 Register
Search
View: 565|Reply: 1

How to make the floating toolbar vertical

[Copy link]

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-3 19:40:01
| Show all posts |Read mode
Every time it is displayed horizontally
code show as below:
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
}

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


CPoint point (100,100);
ClientToScreen (&point);
FloatControlBar (&m_tool, point);
Reply

Use magic Report

0

Threads

30

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 Hong Kong

Post time: 2020-1-3 22:57:01
| Show all posts
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.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list