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

📄 mana.cpp

📁 一个实用的GIS系统的系统维护模块
💻 CPP
字号:
// Mana.cpp : implementation file
//

#include "stdafx.h"
#include "yhgl.h"
#include "Mana.h"
#include "UseDlg.h"
#include "SyDlg.h"
#include "Tree.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
int sign=0;

/////////////////////////////////////////////////////////////////////////////
// Mana dialog


Mana::Mana(CWnd* pParent /*=NULL*/)
	: CDialog(Mana::IDD, pParent)
{
	//{{AFX_DATA_INIT(Mana)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void Mana::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Mana)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Mana, CDialog)
	//{{AFX_MSG_MAP(Mana)
	ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
	ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
	ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Mana message handlers

void Mana::OnRadio2() 
{
    sign=1;
}

void Mana::OnRadio3() 
{
    sign=2;	
}

void Mana::OnRadio1() 
{
   sign=3;	
}

void Mana::OnOK() 
{
	CDialog::OnOK();
	if(sign==1)
	{
		CTree dlg;
		dlg.DoModal();
	}

    if(sign==2)
	{
		CUseDlg dlg;
    	dlg.DoModal();
	}
	if(sign==3)
	{
		CSyDlg dlg;
		dlg.DoModal();
	}
  
}

⌨️ 快捷键说明

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