⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.wzd

📁 《vc++扩展编程实例》源码。运用Visual C++ 5.0或6.0的高级编程技巧
💻 WZD
字号:
/////////////////////////////////////////////////////////////////////
// Example files...
/////////////////////////////////////////////////////////////////////

WzdDlgBr.cpp -- a dialog bar class
WzdDlgBr.h

/////////////////////////////////////////////////////////////////////
// Modify the CMainFrame class...
/////////////////////////////////////////////////////////////////////

// 1) Embed a rebar class variable in CMainFrame:

	CReBar		m_wndReBar;

// 2) Create the rebar in CMainFrame's OnCreate() function:

	if (!m_wndReBar.Create(this))
	{
		TRACE0("Failed to create rebar\n");
		return -1;      // fail to create
	}
	
// 3) Add any toolbars to this rebar like so:

	m_wndReBar.AddBar(&m_wndToolBar,
			"WZD",				//rebar title
			NULL,				// a CBitmap background
			RBBS_GRIPPERALWAYS | RBBS_FIXEDBMP 	//style
			);

// 4) DO NOT ENABLE DOCKING FOR THIS TOOLBAR(S):

//	m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
//	EnableDocking(CBRS_ALIGN_ANY);
//	DockControlBar(&m_wndToolBar);


/////////////////////////////////////////////////////////////////////
// Adding Other Controls....
/////////////////////////////////////////////////////////////////////

// 1) To add other types of controls to your rebar, stick them 
//  in a dialog template, alone or with one or two others.
//
// 2) Create a dialog bar class for this template.
//
// 3) Embed that dialog bar class variable in CMainFrame.
//
// 4) Create the dialog bar like so:

	if (!m_WzdDialogBar.Create(this, IDD_WZD_DIALOG,
			WS_CHILD|WS_VISIBLE,-1) ||
		!m_WzdDialogBar.InitDialog())
	{
		TRACE0("Failed to create dialog bar\n");
		return -1;      // fail to create
	}

// 5) Add the dialog bar to the rebar like so:

	m_wndReBar.AddBar(&m_WzdDialogBar,
			"WZD",				//rebar title
			NULL,				// a CBitmap background
			RBBS_GRIPPERALWAYS | RBBS_FIXEDBMP 	//style
			);


/////////////////////////////////////////////////////////////////////
// From: Visual C++ MFC Programming by Example by John E. Swanke
// Copyright (C) 1999 jeswanke. All rights reserved.
/////////////////////////////////////////////////////////////////////






	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -