Location:
Search - CToolBar
Search list
Description: Because my application required the use of a lot of tools (just like 3DS Max), I decided to implement this control. Here I shall share with you the most important details of creating the tabbed toolbar.
The implementation of the control is quite simple, actually. The control is primarily a Dialog Bar that manages a tab control and a Tool Bar. Thus, the class is derived from CDialogBar and it creates the CTabCtrl and CToolBar objects. The actual creation of the Tab control and toolbar occurs in the Create function of the Dialog Bar.
创建一个制表工具栏
因为我的应用需要使用许多工具(像3DS Max),我决定实现这个控件。
在这里我将和你共同分享创建制表工具栏的最重要的细节。
实际上控件的创建相当简单。这个控件主要是管理一个制表控件和一个工具栏的对话框。因此,这个类从CDialogBar类继承并且它创建了CTabCtrl 和CToolBar对象。实际上制表和工具栏控件的创建发生在DialogBar函数的创建过程中。
Platform: |
Size: 89039 |
Author: |
Hits:
Description: CToolBar不支持多行文字,本文将通过一个定制的MFC/C++类 CMTToolBar 实现在工具条中显示多行文字。其思路是先把文字变成位图,再替换原来的工具条位图,达到显示多行文字的效果。-CToolBar not support multiple lines, the paper will adopt a customized MFC / C CMTToolBar achieve the tools of the extra lines. Their idea is to put the words into bitmap, and the replacement of the original bitmap tools to achieve the extra lines of text effects.
Platform: |
Size: 32097 |
Author: lili |
Hits:
Description: 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
Platform: |
Size: 1640705 |
Author: 陈成 |
Hits:
Description: Because my application required the use of a lot of tools (just like 3DS Max), I decided to implement this control. Here I shall share with you the most important details of creating the tabbed toolbar. The implementation of the control is quite simple, actually. The control is primarily a Dialog Bar that manages a tab control and a Tool Bar. Thus, the class is derived from CDialogBar and it creates the CTabCtrl and CToolBar objects. The actual creation of the Tab control and toolbar occurs in the Create function of the Dialog Bar. 创建一个制表工具栏 因为我的应用需要使用许多工具(像3DS Max),我决定实现这个控件。 在这里我将和你共同分享创建制表工具栏的最重要的细节。 实际上控件的创建相当简单。这个控件主要是管理一个制表控件和一个工具栏的对话框。因此,这个类从CDialogBar类继承并且它创建了CTabCtrl 和CToolBar对象。实际上制表和工具栏控件的创建发生在DialogBar函数的创建过程中。-Because my application required the use of a lot of tools (just like 3DS Max), I decided to implement this control. Here I shall share with you the most important details of creating the tabbed toolbar. The implementation of the control is quite simple, actually. The control is primarily a Dialog Bar that manages a tab control and a Tool Bar. Thus, the class is derived from CDialogBar and it creates the CTabCtrl and CToolBar objects. The actual creation of the Tab control and toolbar occurs in the Create function of the Dialog Bar
Platform: |
Size: 89088 |
Author: 徐丽志 |
Hits:
Description: CToolBar不支持多行文字,本文将通过一个定制的MFC/C++类 CMTToolBar 实现在工具条中显示多行文字。其思路是先把文字变成位图,再替换原来的工具条位图,达到显示多行文字的效果。-CToolBar not support multiple lines, the paper will adopt a customized MFC/C CMTToolBar achieve the tools of the extra lines. Their idea is to put the words into bitmap, and the replacement of the original bitmap tools to achieve the extra lines of text effects.
Platform: |
Size: 41984 |
Author: lili |
Hits:
Description: 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
Platform: |
Size: 1640448 |
Author: 陈成 |
Hits:
Description: 一个支持真彩图标和背景的工具栏类,使用十分方便,直接用真彩位图替换原ToolBar.BMP,并用CToolBarEx替换原CToolBar即可-a support True Color icons and background toolbar category, it is very convenient to use, the direct use of color to replace the original bitmap ToolBar.BMP and used to replace the original CToolBarEx can CToolBar
Platform: |
Size: 6144 |
Author: xhzxlqt |
Hits:
Description: 为MFC应用程序添加全屏幕显示功能
部分代码:
成员变量:
BOOL m_bFullScreen //全屏幕显示标志
CRect m_FullScreenWindowRect //全屏幕显示窗口Rect
WINDOWPLACEMENT m_wpPrev //用于保存正常视图时的窗口位置信息
CToolBar * m_wndFullScreenBar //全屏幕显示时的浮动工具条
成员函数:
void OnMenuFullscreen() //全屏幕显示的处理函数
void OnGetMinMaxInfo() //捕获WM_GETMINMAXINFO消息以便允许你增加窗口大小
void OnUpdateViewFullScreen() //更新“全屏幕显示”菜单的状态
省略-MFC applications to add full-screen display of code : member variables : BOOL m_bFullScreen// Full screen display signs CRect m_FullScr eenWindowRect// Full screen display window Rect WINDOWPLACEMEN T m_wpPrev// View for the preservation of the normal window of information CToolBar* m_wn dFullScreenBar// full-screen display of floating tool for members of the function : OnMenuFullscreen void ()// Full screen showed that the processing function void On GetMinMaxInfo ()// catch information to allow WM_GETMINMAXINFO Xu you increase the window size void OnUpdateViewFullScreen ()// updated "Full screen shows that the" state of the menu omitted.
Platform: |
Size: 4096 |
Author: a |
Hits:
Description: VC++基本类的扩展解决方案,包括CToolBar,CStatusBar,CSplitter等-VC category of the basic extension solutions, including CToolBar, CStatusBar. CSplitter etc.
Platform: |
Size: 348160 |
Author: qouyang |
Hits:
Description: 一个实用的 CToolBar 扩展类 CToolBarEx。程序中的工具条是在CMainFrame中生成的,采用的类是CToolBar,使用起来很复杂。为此,对CToolBar的常用功能进行封装,生成了它的一个继承类CToolBarEx,大大简化了操作。-A practical extension of CToolBar category CToolBarEx. Process tool is in the CMainFrame generated, using the category is CToolBar, very complicated to use. For this reason, the commonly used functions CToolBar package generated one of its type to inherit CToolBarEx, greatly simplifies the operation.
Platform: |
Size: 2048 |
Author: peter shi |
Hits:
Description: CMenuBar: A toolbar that looks and acts exactly like a menu bar. It can be placed in a rebar control just like in Internet Explorer. It also draws icons next to menu items.
CAlphaImageList: A replacement for CImageList that supports images with alpha channel introduced in Windows XP. It automatically generates hot and disabled images looking like in Internet Explorer 6.
CAlphaToolBar: An extension of CToolBar that allows using alpha channel images.
Platform: |
Size: 19456 |
Author: huat |
Hits:
Description: CTOOLBAR的一个示例程序,用户可以根据该示例进行实现开发工具条控件。-CTOOLBAR an example of the procedure, the user can realize under the example of development tools for the control article.
Platform: |
Size: 1972224 |
Author: 李真 |
Hits:
Description: CToolBar 扩展类 CToolBarEx。程序中的工具条是在CMainFrame中生成的,采用的类是CToolBar,使用起来很复杂。为此,对CToolBar的常用功能进行封装,生成了它的一个继承类CToolBarEx,大大简化了操作。-CToolBar category to expand CToolBarEx. Process tool is in the CMainFrame generated, using the category is CToolBar, very complicated to use. For this reason, the commonly used functions CToolBar package generated one of its type to inherit CToolBarEx, greatly simplifies the operation.
Platform: |
Size: 43008 |
Author: zzh |
Hits:
Description: CToolBar不支持多行文字,本文将通过一个定制的MFC/C++类 CMTToolBar 实现在工具条中显示多行文字。其思路是先把文字变成位图,再替换原来的工具条位图,达到显示多行文字的效果。
-CToolBar does not support multiple lines of text, this article will be customized through a MFC/C Class CMTToolBar achieve the toolbar to display multiple lines of text. The idea is to first text into a bitmap, and then replace the original toolbar bitmap to display multiple lines of text effects.
Platform: |
Size: 41984 |
Author: huangta |
Hits:
Description: 该程序介绍了怎么在工具栏上增加组合框控件,具体操作就是从CToolBar派生一个新类-How to introduce the program in the toolbar combo box control on the increase, the specific operation is derived from a new class CToolBar
Platform: |
Size: 62464 |
Author: tanghuang |
Hits:
Description: ctoolbar 停靠,工具条中嵌入combox,实现任意停靠-ctoolbar
Platform: |
Size: 64512 |
Author: 孙青 |
Hits:
Description: ctoolbar,实现工具条的任意停放功能,并且可以在工具条上加入combox-ctoolbar
Platform: |
Size: 87040 |
Author: 孙青 |
Hits:
Description: CToolBar Example
CComboBoxToolbar
See This Source Code
Platform: |
Size: 58368 |
Author: wolf |
Hits:
Description: 介绍从CToolBar继承的 CPaletteBar
CToolBar m_wndToolBar
CStyleBar m_wndStyleBar
CPaletteBar m_wndPaletteBar
CDialogBar m_wndDlgBar
-CPaletteBar
Platform: |
Size: 103424 |
Author: 韩宾 |
Hits:
Description: 向对话框类中添加工具栏
在文档/视图结构中,添加工具栏是非常方便的,但在基于对话框的应用程序中,就稍稍复杂一点了。通常情况下,向对话框中添加工具栏有两种方法。
第一种方法:
特点:
① 使用CToolBar类,可以装载工具栏资源。
② 代码编写简单方便。
第二种方法:
特点:
① 使用CToolBarCtrl类,必须与CImageList类联合使用。
② 可以支持真彩色(32位)图标。
-Add a toolbar to the dialog class in the document/view architecture is very convenient to add the toolbar, dialog-based application, it is a little more complicated a little. Under normal circumstances, there are two ways to add a toolbar to the dialog box. The first method: Features: 鈶� CToolBar class, you can load the toolbar resource. The 鈶� coding simple and convenient. The second method: features: 鈶� CToolBarCtrl class must be used in conjunction with the CImageList class. (2) can support True Color (32) icon.
Platform: |
Size: 12288 |
Author: zhenli |
Hits: