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

📄 system.cpp

📁 支持Windows 3.x、Windows 9x平台上的中文(GB、Big5)、日文(Shift JIS、EUC JIS)、韩文(KS C 5601)、HZ码的显示与输入,智能内码识别
💻 CPP
字号:
// system.cpp : implementation file
//

#include "stdafx.h"
#include	"resource.h"
#include	"cspublic.h"
//#include "system.h"

#include	"basicwin.h"
#include	"basicbut.h"
#include	"systemse.h"
#include	"menubutt.h"
#include	"activebu.h"
#include "cswin.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSystem dialog


CSystem::CSystem(UINT id)
	: CCommonPage(id)
{
	//从INI文件得到提示方式
	m_nPromptFlag	=!GetPrompt() ;
	m_nWinOrBar	=!GetWinOrBar() ;
	m_nLine			=!GetLineFlag() ;
	m_nFinger	=!GetFingerAidedKeyFlag() ;	
	//{{AFX_DATA_INIT(CSystem)
	//}}AFX_DATA_INIT
}

void CSystem::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSystem)
	DDX_Radio(pDX, IDC_RADIO1, m_nPromptFlag);
	DDX_Radio(pDX, IDC_RADIO5, m_nWinOrBar);
	DDX_Radio(pDX, IDC_RADIO3, m_nLine);
	DDX_Radio(pDX, IDC_RADIO7, m_nFinger);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CSystem, CPropertyPage)
	//{{AFX_MSG_MAP(CSystem)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CSystem message handlers

void CSystem::OnOK()
{
	SetPrompt( !m_nPromptFlag ) ;
	SetWinOrBar( !m_nWinOrBar ) ;
	SetLineFlag( !m_nLine ) ;
	SetFingerAidedKeyFlag( !m_nFinger ) ;
	if( !m_nLine )	//允许退化显示
	{
		CWnd	*pWnd	=AfxGetMainWnd() ;	//得到主窗口
		pWnd->KillTimer( TIMER1_ID ) ;		//破坏原来的时间器
		//设上退化时间器
		pWnd->SetTimer( TIMER1_ID , TIME_TO_WAIT_FOR_LINE , NULL ) ;
	}
	
	CPropertyPage::OnOK();
}

⌨️ 快捷键说明

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