-
MFC打造个性化菜单栏
应用背景
本例程使用的是微软MFC6.0开发工具,主要针对MFC生成的工具栏图标太小形式单一的缺点,从而打造属于自己的个性化软件工具栏,工具栏的程序代码对工具栏的修改提供了广阔的修改空间.满足不同审美需求.
本代码是本人花了很多时间才摸索出来的,经过实际测试可用,网上独一无二.
关键技术
1.通过MFC生成单文档程序.
2.双击CMainFram类,在右边显示的protected成员里定义两个CToolBar和 CImageList 对象.
3.在Rescourceview视图里的ICON插入8个ico图标.
4.在CMainFram类里打开onCreate函数里将系统生成的工具栏代码注释起来,并添加代码产生自己的个性化工具栏.
- 2022-08-13 14:31:52下载
- 积分:1
-
NT 的注销、重启、关闭计算机
NT 的注销、重启、关闭计算机-NT write-off, restart, shut down the computer
- 2022-01-21 20:46:53下载
- 积分:1
-
本例实现了一个简单的自绘工具条操作。该工具条可停靠在窗口的任意位置。...
本例实现了一个简单的自绘工具条操作。该工具条可停靠在窗口的任意位置。-the cases to achieve a simple painting from the operation of the tool. The tool of the window can be docked in the arbitrary location.
- 2022-08-13 15:11:03下载
- 积分:1
-
在工具栏上添加COMBOBOX,EditBox,ProgressCtrl,Slider控件根据相同的道理您还可以添加其他控件复选框、单选按钮...
在工具栏上添加COMBOBOX,EditBox,ProgressCtrl,Slider控件根据相同的道理您还可以添加其他控件复选框、单选按钮-the toolbar add COMBOBOX, EditBox, ProgressCtrl, Slider Control to the same token you can also add other controls check box, radio button, etc.
- 2023-01-12 02:45:04下载
- 积分:1
-
Menu菜单,能浮动, 能停靠也可以像 改变后的TOOLBAR一样 保存里面的东西...
Menu菜单,能浮动, 能停靠也可以像 改变后的TOOLBAR一样 保存里面的东西
-Menu menu, will be able to float, will also be docked as a change in the same TOOLBAR preservation and the things
- 2022-06-15 07:04:13下载
- 积分:1
-
interface toolbar
介面toolbar-interface toolbar
- 2022-03-15 23:33:58下载
- 积分:1
-
A. toolbar4
a. ToolBar4---- 工具条 按住ALT+鼠标 工具条的按纽跟着鼠标移动。 主要是一个重写的类ToolBarEx.cpp
使用这个类的时候 使用上自定义的消息
另外,只能保存当前状态,在第二次打开本程序的时候toolbar 的工具条和上一次一样!
b.
TOOLBAR 里面的下拉按纽
有通知 按纽的通知
ON_NOTIFY(TBN_DROPDOWN, AFX_IDW_TOOLBAR, OnToolbarDropDown)
c.
TOOLBAR里面 加入 下拉combox。
重载 combox? CFlatComboBox
扩展CTOOLBAR ? CTOOLBAREX 中定义成变量
public:
CFlatComboBox m_wndZoom
----- ALT tools of the press tools of the mouse button with the mouse movement. Rewriting is a major category ToolBarEx.cpp the use of this type of use from the definition of news addition, only the current state of preservation, in the second to open the proceedings of the toolbar and tools on the same time! B. TOOLBAR inside of the drop-down button a button notification notice ON_NOTIFY (TBN_DROPDOWN, AFX_IDW_TOOLBAR, OnToolbarDropDown) c. TOOLBAR inside to join the drop-down Combox. Heavy Combox CFlatComboBox expansion CTOOLBAR CTOOLBAREX defined as public variables : CFlatComboBox m_wndZoom
- 2022-02-22 00:21:47下载
- 积分:1
-
显示真彩工具条,将toolbar继承自此类,可以调用接口函数加载24bit真彩工具条菜单...
显示真彩工具条,将toolbar继承自此类,可以调用接口函数加载24bit真彩工具条菜单-True Color display of tools, such inherited from the toolbar can function call interface tool loading 24bit color of the menu
- 2022-01-26 08:24:48下载
- 积分:1
-
新的C++ Builder和# 39;的绘图功能,这是变换颜色,日…
一款用C++ Builder实现的画图功能,其中有颜色的变换,更多的由你来评论吧-new C Builder"s drawing functions, which are the color of transformation, the more you comment on it
- 2022-07-21 10:56:39下载
- 积分:1
-
类似VC/Office97那样的可以随意移动的菜单和工具条
类似VC/Office97那样的可以随意移动的菜单和工具条-The menu and toolbar which can be moved as that in VC/office97
- 2022-08-26 03:13:26下载
- 积分:1