資源簡介
gps的界面設計!!!!!!gps的界面設計!!!!!!gps的界面設計!!!!!!

代碼片段和文件信息
//?BrightDlg.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“GPS.h“
#include?“BrightDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
extern?HANDLE?hBak;
#define?IOCTL_GET_STA 0x803
#define?IOCTL_SET_STA???????????0x804
#define?MAX_TIMEOUT 2147483
const?TCHAR?szregRootKey[]=TEXT(“ControlPanel\\Backlight“);
const?TCHAR?szregBatteryTimeout[]=TEXT(“BatteryTimeout“);
const?TCHAR?szregACTimeout[]=TEXT(“ACTimeout“);
//?CBrightDlg?dialog
CBrightDlg::CBrightDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CBrightDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CBrightDlg)
//}}AFX_DATA_INIT
?out?=?0;
?m_strAcTime?[0]?=?“15秒“;
?m_strAcTime?[1]=?“30秒“;
?m_strAcTime?[2]=?“1分“;
?m_strAcTime?[3]?=?“2分“;
?m_strAcTime?[4]=?“5分“;
?m_strAcTime?[5]=?“10分“;
?m_strAcTime?[6]=?“30分“;
?m_strAcTime?[7]=?“60分“;
?m_strAcTime?[8]=?“從不“;
?m_strBatTime?[0]?=?“15秒“;
?m_strBatTime?[1]=?“30秒“;
?m_strBatTime?[2]=?“1分“;
?m_strBatTime?[3]?=?“2分“;
?m_strBatTime?[4]=?“5分“;
?m_strBatTime?[5]=?“10分“;
?m_strBatTime?[6]=?“30分“;
?m_strBatTime?[7]=?“60分“;
?m_strBatTime?[8]=?“從不“;
/*
?m_strBatTime15s?=?“15秒“;
?m_strBatTime30s?=?“30秒“;
?m_strBatTime1m?=?“1分“;
?m_strBatTime2m?=?“2分“;
?m_strBatTime5m?=?“5分“;
?m_strBatTime10m?=?“10分“;
?m_strBatTime30m?=?“30分“;
?m_strBatTime60m?=?“15秒“;
?m_strBatTimeNever?=?“從不“;
*/
// ?m_strAcTime?=?{“15秒““30秒““1分““2分““5分““10分““30分““60分““從不“};
}
void?CBrightDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CBrightDlg)
DDX_Control(pDX?IDC_BRIGHT9?m_staBright9);
DDX_Control(pDX?IDC_BRIGHT8?m_staBright8);
DDX_Control(pDX?IDC_BRIGHT6?m_staBright6);
DDX_Control(pDX?IDC_BRIGHT7?m_staBright7);
DDX_Control(pDX?IDC_BRIGHT5?m_staBright5);
DDX_Control(pDX?IDC_BRIGHT4?m_staBright4);
DDX_Control(pDX?IDC_BRIGHT3?m_staBright3);
DDX_Control(pDX?IDC_BRIGHT2?m_staBright2);
DDX_Control(pDX?IDC_BRIGHT1?m_staBright1);
DDX_Control(pDX?IDC_BRIGHT0?m_staBright0);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CBrightDlg?CDialog)
//{{AFX_MSG_MAP(CBrightDlg)
ON_WM_KEYDOWN()
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
ON_WM_PAINT()
ON_WM_ERASEBKGND()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CBrightDlg?message?handlers
BOOL?CBrightDlg::OnInitDialog()?
{
CDialog::OnInitDialog();
//?TODO:?Add?extra?initialization?here
m_Left=0;
m_Top=0;
m_Width=320;
m_Height=240;
::SetWindowPos(this->GetSafeHwnd()HWND_TOPm_Left?m_Top?
m_Width?m_HeightSWP_SHOWWINDOW);
CenterWindow(GetDesktopWindow()); //?center?to?the?hpc?screen
//?TODO:?Add?extra?initialization?here
m_BackScreenBitmap.LoadBitmap(IDB_BRIGHT_BKG);
SetToolRectangle();
m_prePick=-1;
m_currentPick=0;
m_bIsExecute=FALSE?;
//////////?亮度
DeviceIoControl(hBakIOCTL_GET
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????28769??2007-02-28?12:22??GPS.2\BrightDlg.cpp
?????文件???????2409??2007-02-28?12:22??GPS.2\BrightDlg.h
?????文件???????4373??2007-02-28?12:22??GPS.2\ErrorDlg.cpp
?????文件???????1653??2007-02-28?12:22??GPS.2\ErrorDlg.h
?????文件????3493684??2010-06-01?21:22??GPS.2\GPS.APS
?????文件???????1794??2007-02-28?12:22??GPS.2\GPS.cpp
?????文件???????1336??2007-02-28?12:22??GPS.2\GPS.h
?????文件??????26953??2007-02-28?12:22??GPS.2\GPS.rc
?????文件?????664576??2010-06-05?10:35??GPS.2\GPS.vcb
?????文件???????5507??2010-06-01?21:22??GPS.2\GPS.vcc
?????文件???????3930??2010-06-05?09:34??GPS.2\GPS.VCL
?????文件?????120753??2007-02-28?12:22??GPS.2\GPS.VCP
?????文件????????536??2007-02-28?12:22??GPS.2\GPS.VCW
?????文件??????35790??2010-03-30?17:46??GPS.2\GPSDlg.cpp
?????文件???????2146??2007-02-28?12:22??GPS.2\GPSDlg.h
?????文件???????4661??2007-02-28?12:22??GPS.2\InfoDlg.cpp
?????文件???????1702??2007-02-28?12:22??GPS.2\InfoDlg.h
?????文件??????11145??2007-02-28?12:22??GPS.2\LanguageDlg.cpp
?????文件???????2042??2007-02-28?12:22??GPS.2\LanguageDlg.h
?????文件??????29676??2007-02-28?12:22??GPS.2\MP3Dlg.cpp
?????文件???????1831??2007-02-28?12:22??GPS.2\MP3Dlg.h
?????文件????????768??2007-02-28?12:22??GPS.2\newres.h
?????文件??????24940??2007-02-28?12:22??GPS.2\PictureDlg.cpp
?????文件???????1875??2007-02-28?12:22??GPS.2\PictureDlg.h
?????文件???????5345??2007-02-28?12:22??GPS.2\PowerDlg.cpp
?????文件???????1695??2007-02-28?12:22??GPS.2\PowerDlg.h
?????文件???????3335??2007-02-28?12:22??GPS.2\ReadMe.txt
?????文件??????13253??2007-02-28?12:22??GPS.2\Resource.h
?????文件??????26875??2007-02-28?12:22??GPS.2\SetDlg.cpp
?????文件???????1794??2007-02-28?12:22??GPS.2\SetDlg.h
............此處省略374個文件信息
評論
共有 條評論