mainfrm.h

来自「VS2005图像处理程序的源代码」· C头文件 代码 · 共 55 行

H
55
字号
// MainFrm.h : CMainFrame 类的接口
//


#pragma once

class CMainFrame : public CFrameWnd
{
	
protected: // 仅从序列化创建
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// 属性
public:

// 操作
public:

// 重写
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

// 实现
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // 控件条嵌入成员
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;

// 生成的消息映射函数
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()
public:
	static void GetAllFileNames(const CString& path, CStringArray& ary);
public:

	void UpdateIndicator(int nID, const CString& strShow)
	{
		int nIndex = m_wndStatusBar.CommandToIndex(nID);
		m_wndStatusBar.SetPaneText(nIndex, strShow);

		int nLength = strShow.GetLength();		// 根据文本改变指示器大小
		m_wndStatusBar.SetPaneInfo(nIndex, nID, SBPS_NORMAL, nLength * 8);
	}
};


⌨️ 快捷键说明

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