资源简介
使用vs2010编译,已经修正错误,相关配置也已经修改
效果图见http://blog.csdn.net/liangjiapei/article/details/52859818

代码片段和文件信息
///////////////////////////////////////////////////////////////////////////////
//
// CollapsiblePanel.cpp: implementation of the CCollapsiblePanel class.
//
///////////////////////////////////////////////////////////////////////////////
#include “stdafx.h“
#include “CollapsiblePanel.h“
#include
//////////////////////////////////////////////////////////////////////
// CCollapsiblePanel implementtaion
BOOL CCollapsiblePanel::CreateTheContainer(CframeWnd* pTheDialog UINT nID bool Dockable)
{
// Create the default dialog bar.
BOOL bRes = m_wndDialogBar.Create(pTheDialog nID WS_VISIBLE|WS_CHILD|CBRS_LEFT|CBRS_SIZE_DYNAMIC 2);
if ( Dockable == true )
{
m_wndDialogBar.EnableDocking(CBRS_ALIGN_RIGHT|CBRS_ALIGN_LEFT);
pTheDialog->DockControlBar(&m_wndDialogBar);
m_wndDialogBar.isDockable = true;
}
return bRes;
}
void CCollapsiblePanel::SetTheBkColor(COLORREF newColor)
{
m_wndDialogBar.SetTheBkColor(newColor);
}
void CCollapsiblePanel::SetExpandBitmap(UINT BMP_EXPAND)
{
m_wndDialogBar.SetExpandBitmap(BMP_EXPAND);
}
void CCollapsiblePanel::SetMaskColor(COLORREF newColor)
{
m_wndDialogBar.SetMaskColor(newColor);
}
void CCollapsiblePanel::SetButtonBkColor(COLORREF newColor)
{
m_wndDialogBar.SetButtonBkColor(newColor);
}
void CCollapsiblePanel::SetButtonTextColor(COLORREF newColor)
{
m_wndDialogBar.SetButtonTextColor(newColor);
}
void CCollapsiblePanel::SetDefaultSystemColor()
{
m_wndDialogBar.SetTheBkColor(GetSysColor(COLOR_ACTIVECAPTION));
m_wndDialogBar.SetButtonBkColor(GetSysColor(COLOR_HIGHLIGHT));
m_wndDialogBar.SetButtonTextColor(GetSysColor(COLOR_BTNTEXT));
}
void CCollapsiblePanel::SetTheControlBar(CToolBar* mainToolBar CStatusBar* mainStatusBar)
{
m_wndDialogBar.SetTheControlBar(mainToolBar mainStatusBar);
}
int CCollapsiblePanel::AppendButton(const char* Name UINT ICON_LEFT CDialog* thePanelViewClass UINT ID_DIALOG_TO_ASSOCIATE)
{
if ( thePanelViewClass != NULL )
{
thePanelViewClass->Create(ID_DIALOG_TO_ASSOCIATE GetTheControlWnd());
thePanelViewClass->ShowWindow(SW_HIDE);
}
return m_wndDialogBar.AppendButton(Name ICON_LEFT thePanelViewClass);
}
CWnd* CCollapsiblePanel::GetTheControlWnd()
{
return m_wndDialogBar.FromHandle(m_wndDialogBar.m_hWnd);
}
///////////////////////////////////////////////////////////////////////////////
// CResizableDlgBar implementtaion
///////////////////////////////////////////////////////////////////////////////
// Message map.
BEGIN_MESSAGE_MAP(CResizableDlgBar baseCResizableDlgBar)
//{{AFX_MSG_MAP(CResizableDlgBar)
ON_WM_PAINT()
ON_WM_LBUTTONDBLCLK()
ON_WM_SIZE()
//**ON_WM_SIZE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
///////////////////////////////////////////////////////////////////////////////
// Class implementation.
CResizableDlgBar::CResizableDlgBar()
{
// Initialize the class variables.
bkColor = RGB(100 149
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 892 2016-10-19 14:59 TestBar.sln
文件 16384 2016-10-19 15:11 TestBar.suo
目录 0 2016-10-19 15:10 TestCoolBar\
文件 13276 2016-10-19 14:51 TestCoolBar\CollapsiblePanel.cpp
文件 4596 2016-10-19 14:50 TestCoolBar\CollapsiblePanel.h
文件 3568 2008-08-17 13:20 TestCoolBar\MainFrm.cpp
文件 1583 2008-08-17 13:19 TestCoolBar\MainFrm.h
文件 4335 2008-08-17 13:06 TestCoolBar\ReadMe.txt
目录 0 2008-08-17 13:20 TestCoolBar\res\
文件 829 2008-08-17 13:19 TestCoolBar\resource.h
文件 1078 2008-08-17 13:06 TestCoolBar\res\TestBar.ico
文件 399 2008-08-17 13:06 TestCoolBar\res\TestBar.rc2
文件 1078 2008-08-17 13:06 TestCoolBar\res\TestBarDoc.ico
文件 1318 2008-08-17 13:19 TestCoolBar\res\Toolbar.bmp
文件 11620 2016-10-19 14:53 TestCoolBar\scbarg.cpp
文件 2396 2016-10-19 14:53 TestCoolBar\scbarg.h
文件 44892 2016-10-19 14:54 TestCoolBar\sizecbar.cpp
文件 7962 2016-10-19 14:54 TestCoolBar\sizecbar.h
文件 209 2008-08-17 13:06 TestCoolBar\StdAfx.cpp
文件 1054 2008-08-17 13:06 TestCoolBar\StdAfx.h
文件 44616 2008-08-17 13:19 TestCoolBar\TestBar.aps
文件 2336 2008-08-17 13:19 TestCoolBar\TestBar.clw
文件 4227 2008-08-17 13:06 TestCoolBar\TestBar.cpp
文件 1367 2008-08-17 13:06 TestCoolBar\TestBar.h
文件 48640 2008-08-17 13:20 TestCoolBar\TestBar.opt
文件 1499 2008-08-17 13:20 TestCoolBar\TestBar.plg
文件 11959 2008-08-17 13:19 TestCoolBar\TestBar.rc
文件 8446 2016-10-19 15:10 TestCoolBar\TestBar.vcxproj
文件 3079 2016-10-19 14:46 TestCoolBar\TestBar.vcxproj.filters
文件 143 2016-10-19 14:46 TestCoolBar\TestBar.vcxproj.user
文件 1762 2008-08-17 13:06 TestCoolBar\TestBarDoc.cpp
............此处省略3个文件信息
相关资源
- ado数据库MFC图书管理系统vs2010
-
解决安装vs2012后vs2010 li
nk : fatal er - AnkhSvn-2.6.12735 支持VS2010-VS2015 官方原版
- VS2010、VS2012、VS2013代码自动注释插件
- 插件式GIS应用框架的设计与实现&mda
- 通过x264录制RGB屏幕视频vs2013工程,
- G726、G711、G711A转换为AAC
- VS2010 运行时库
- vs2010 ffmpeg实时解码h264码流
- 个人银行账户管理系统
- CMake-3.9.0
- 基于FFMPEG_SDL2_音视频播放_参考音频时
- G-code-Interpreter,G代码解释器
- 三款主题VS2010
- VS2010黑色主题Dark主题
- Visual Assist X VA_X插件及破解工具,适用
- TabControl用法图解VS2010
- Midas to FLAC3D-vs2010
- 浴池管理系统
- ecc使用源代码——真正好用的vs2010编
- 基于SIFT算法的图像拼接.rar
- VisualStudio 2008-2017系统注释中文包,解
- vs2010 win7下编译的openssl-1.0.2n静态库
- iar 工程转成vs2010工程
- PCL点云库SACSegmentation用法demo
- 相机标定完整工程vs
- VS2010安装包中的vs_setup.msi文件
- VS2010使用Glog日志类例程
- VS2010写的连连看
- 控制台三国杀第三版VS2010代码
评论
共有 条评论