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

📄 systermsetdlg.cpp

📁 在LCD上对WINCE系统进行设定,包括LCD背光的关机时间,系统音量的大小,LCD界面的调整等
💻 CPP
字号:
// SystermSetDlg.cpp : implementation file
//

#include "stdafx.h"
#include "SystermSet.h"
#include "SystermSetDlg.h"
#include "TURNOFFTIME.h"
#include "CHelp.h "
#include "CUsb.h"
#include <pwinuser.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSystermSetDlg dialog

CSystermSetDlg::CSystermSetDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CSystermSetDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSystermSetDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

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

BEGIN_MESSAGE_MAP(CSystermSetDlg, CDialog)
	//{{AFX_MSG_MAP(CSystermSetDlg)
	ON_BN_CLICKED(IDC_home, Onhome)
	ON_BN_CLICKED(IDC_TunoffTime, OnTunoffTime)
	ON_BN_CLICKED(IDC_Exponent, OnExponent)
	ON_BN_CLICKED(IDC_DataTransfer, OnDataTransfer)
	ON_BN_CLICKED(IDC_PenPoint, OnPenPoint)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSystermSetDlg message handlers

BOOL CSystermSetDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	CenterWindow(GetDesktopWindow());	// center to the hpc screen

	btn_penpoint.LoadBitmaps(IDB_penpoint);                          
	btn_penpoint.SubclassDlgItem(IDC_PenPoint,this);
	btn_penpoint.SizeToContent();    
	
	btn_datatransfer.LoadBitmaps(IDB_datatransfer);                          
	btn_datatransfer.SubclassDlgItem(IDC_DataTransfer,this);
	btn_datatransfer.SizeToContent(); 

	btn_tunofftime.LoadBitmaps(IDB_turnofftime);                          
	btn_tunofftime.SubclassDlgItem(IDC_TunoffTime,this);
	btn_tunofftime.SizeToContent(); 


	btn_exponent.LoadBitmaps(IDB_exponent);                          
	btn_exponent.SubclassDlgItem(IDC_Exponent,this);
	btn_exponent.SizeToContent(); 

	btn_return.LoadBitmaps(IDB_return);                          
	btn_return.SubclassDlgItem(IDC_return,this);
	btn_return.SizeToContent(); 


	btn_home.LoadBitmaps(IDB_home);                          
	btn_home.SubclassDlgItem(IDC_home,this);
	btn_home.SizeToContent(); 
	
	return TRUE;  // return TRUE  unless you set the focus to a control
}



void CSystermSetDlg::Onhome() 
{
	CDialog::OnOK();
	CDialog::DestroyWindow();
}

void CSystermSetDlg::OnTunoffTime() 
{
	CTURNOFFTIME dlg;
	dlg.DoModal();	
}

void CSystermSetDlg::OnExponent() 
{
CCHelp dlg;
dlg.DoModal();	
}

void CSystermSetDlg::OnDataTransfer() 
{
	CCUsb dlg;
	dlg.DoModal();	
}

void CSystermSetDlg::OnPenPoint() 
{
	// TODO: Add your control notification handler code here
	BOOL flags;
	flags=TouchCalibrate();
	if(flags==FALSE)
    RETAILMSG (1, (TEXT("TouchCalibrate if false!!\r\n")));
}

⌨️ 快捷键说明

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