顶部右行的MFC工具栏 [英] MFC toolbar on top row with right align

查看:333
本文介绍了顶部右行的MFC工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,MFC工具栏停靠在左对齐的第一行.谁能告诉我如何将MFC工具栏靠右对齐停靠(这意味着所有工具栏按钮都与右行靠右对齐)?

By default, MFC toolbar are docked on top row left align. Could anyone please tell me how to dock the MFC toolbar on top row with right align (meaning that all toolbar buttons are align to right on the top row)?

推荐答案

创建工具栏时,使用 CToolBar :: CreateEx [ ^ ]并提供一个矩形作为第四个参数.只需使用框架窗口的大小进行一些计算,就可以弄清它.
When you create the toolbar use CToolBar::CreateEx[^] and supply a rectangle as the fourth parameter. With a little calculating using the size of your frame window, you will get it right.


这篇关于顶部右行的MFC工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆