readme.wzd

来自「MFC扩展编程实例」· WZD 代码 · 共 53 行

WZD
53
字号
/////////////////////////////////////////////////////////////////////
// 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 + =
减小字号Ctrl + -
显示快捷键?