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

📄 readme.wzd

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

WzdStatB.cpp -- CWzdStatusBar, a status bar class that changes the style of
WzdStatB.h       a pane to owner-drawn, and then draws that pane.

/////////////////////////////////////////////////////////////////////
// Use CWzdStatusBar...
/////////////////////////////////////////////////////////////////////

// 1) Use the Icon Editor to add one or more icons to your application's 
// resources.

// 2) Use the String Table Editor to create a new status bar pane id:

    ID_INDICATOR_LED        "   "

// 3) Substitute CWzdStatusBar for CStatusBar in Mainfrm.h.

// 4) Add the new status pane id to the table in Mainfrm.cpp:

static UINT indicators[] =
{
	ID_SEPARATOR,           // status line indicator
	ID_INDICATOR_CAPS,
	ID_INDICATOR_NUM,
	ID_INDICATOR_SCRL,
	ID_INDICATOR_LED,	<<<<<<
};

// 5) Initialize the CWzdStatusBar class in CMainFrame's OnCreate() function:

	// change selected pane style(s) to self-draw
	m_wndStatusBar.InitDrawing();

// 6) CWzdStatusBar will check a flag to determine what icon to draw in
// the status bar. When you change this flag outside of CWzdStatusBar, you
// can force the new icon to be drawn with:

	// change flag
	m_bTest=FALSE;

	// force icon to be re-drawn
	m_wndStatusBar.Invalidate();


/////////////////////////////////////////////////////////////////////
// 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 + -