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

📄 inputse1.cpp

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

#include "stdafx.h"
#include "resource.h"
#include	"cspublic.h"
#include	"systemse.h"
#include "inputse1.h"

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

/////////////////////////////////////////////////////////////////////////////
// CInputSe1 dialog


CInputSe1::CInputSe1(UINT id)
	: CCommonPage(id)
{
	m_nEnOrCh =!GetInputStatus123( 1 ) ;
	m_nNoSpace =!GetInputStatus123( 2 ) ;
	m_nBjOrQj = !GetInputStatus123( 3 ) ;
	//{{AFX_DATA_INIT(CInputSe1)
	//}}AFX_DATA_INIT
}

void CInputSe1::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CInputSe1)
	DDX_Radio(pDX, IDC_RADIO1, m_nEnOrCh);
	DDX_Radio(pDX, IDC_RADIO3, m_nNoSpace);
	DDX_Radio(pDX, IDC_RADIO5, m_nBjOrQj);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CInputSe1, CPropertyPage)
	//{{AFX_MSG_MAP(CInputSe1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CInputSe1 message handlers

void CInputSe1::OnOK()
{
	// TODO: Add extra validation here
	if( m_nEnOrCh!=m_nOldEnOrCh )
	{
		SetInputStatus123( 1 ) ;
		::SendMessage( GetInputBarHandle() ,
			WM_USER_CHANGE_BUTTON_STATUS , 0 , 0 ) ;
	}
	if( m_nNoSpace!=m_nOldNoSpace )
	{
		SetInputStatus123( 2 ) ;
		::SendMessage( GetInputBarHandle() ,
			WM_USER_CHANGE_BUTTON_STATUS , 1 , 0 ) ;
	}
	if( m_nBjOrQj!=m_nOldBjOrQj )
	{
		SetInputStatus123( 3 ) ;
		::SendMessage( GetInputBarHandle() ,
			WM_USER_CHANGE_BUTTON_STATUS , 2 , 0 ) ;
	}
		
	CPropertyPage::OnOK();
}

BOOL CInputSe1::OnInitDialog()
{
	CCommonPage::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_nOldEnOrCh	=m_nEnOrCh ;
	m_nOldNoSpace	=m_nNoSpace ;
	m_nOldBjOrQj	=m_nBjOrQj ;
	
	return TRUE;  // return TRUE  unless you set the focus to a control
}

⌨️ 快捷键说明

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