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

📄 mymdi.h

📁 用户管理系统
💻 H
字号:
// MyMid.h: interface for the CMyMid class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYMID_H__475A2490_56CA_4E11_9D8F_F0DA55816154__INCLUDED_)
#define AFX_MYMID_H__475A2490_56CA_4E11_9D8F_F0DA55816154__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ChildFrm.h"
//登记MDI窗口的打开和关闭
class CMyMdi  
{
protected:
public:
	void DeleteAll(void);
	struct tabMyMdi
	{
	  char szName[65];
	  CWnd *pView;
	  CWnd *pSubView;
	  tabMyMdi *pNext;
	};
//m_pMyMdi必需以tabMyMdi*指针类型使用
//设置为void*类型,因为tabMyMdi为内部类型
//不能以静态方式初始化m_pMyMdi指针
	static void *m_pMyMdi;
	static BOOL m_bExitCode;
	void SetExitCode(BOOL bCode){m_bExitCode=bCode;}
	static BOOL GetExitCode(void){return m_bExitCode;}
	
	BOOL MainClose(BOOL bMsg = true);
	BOOL ChildClose(CWnd *pView);
	int  Append(char *pName, CRuntimeClass* pNewViewClass, 
		        UINT nIcon=0,CWnd* pParentWnd = NULL,
				UINT nID = 0); //打开
	BOOL Delete(char *pName);               //删除
    BOOL Delete(CWnd *pView);        //删除
    BOOL SetSubView(CWnd *pView, CWnd *pDlg);
    CWnd *GetSubView(CWnd *pView);//取子窗口指针
    char *GetName(CWnd *pView);    //取窗口名称
    CWnd *GetView(char *pName);    //取窗口名称
    int  GetIndex(char *pName);    //取窗口索引
    int GetCount();
	CMyMdi();
	virtual ~CMyMdi();

};

#endif // !defined(AFX_MYMID_H__475A2490_56CA_4E11_9D8F_F0DA55816154__INCLUDED_)

⌨️ 快捷键说明

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