Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

83 lines
2.1 KiB
C++

// InstHandDlg.cpp : implementation file
//
#include "StdAfx.h"
#include "resource.h"
#include "InstHandDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInstHandDlg dialog
CInstHandDlg::CInstHandDlg(CWnd* pParent /*=NULL*/)
: CDialog(CInstHandDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CInstHandDlg)
m_nType = -1;
m_dScale = 0.0;
//}}AFX_DATA_INIT
}
void CInstHandDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInstHandDlg)
DDX_Radio(pDX, IDC_RADIO1, m_nType);
DDX_Text(pDX, IDC_EDIT1, m_dScale);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInstHandDlg, CDialog)
//{{AFX_MSG_MAP(CInstHandDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CInstHandDlg message handlers
BOOL CInstHandDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CButton * pPicture;
m_Bitmap1.LoadBitmap(IDB_VHand1);
pPicture = (CButton *)GetDlgItem(IDC_RADIO1);
pPicture->SetBitmap((HBITMAP)m_Bitmap1);
m_Bitmap2.LoadBitmap(IDB_VHand2);
pPicture = (CButton *)GetDlgItem(IDC_RADIO2);
pPicture->SetBitmap((HBITMAP)m_Bitmap2);
m_Bitmap3.LoadBitmap(IDB_VHand3);
pPicture = (CButton *)GetDlgItem(IDC_RADIO3);
pPicture->SetBitmap((HBITMAP)m_Bitmap3);
m_Bitmap4.LoadBitmap(IDB_VHand4);
pPicture = (CButton *)GetDlgItem(IDC_RADIO4);
pPicture->SetBitmap((HBITMAP)m_Bitmap4);
m_Bitmap5.LoadBitmap(IDB_VHand5);
pPicture = (CButton *)GetDlgItem(IDC_RADIO5);
pPicture->SetBitmap((HBITMAP)m_Bitmap5);
m_Bitmap6.LoadBitmap(IDB_VHand6);
pPicture = (CButton *)GetDlgItem(IDC_RADIO6);
pPicture->SetBitmap((HBITMAP)m_Bitmap6);
m_Bitmap7.LoadBitmap(IDB_VHand7);
pPicture = (CButton *)GetDlgItem(IDC_RADIO7);
pPicture->SetBitmap((HBITMAP)m_Bitmap7);
m_Bitmap8.LoadBitmap(IDB_VHand7);
pPicture = (CButton *)GetDlgItem(IDC_RADIO8);
pPicture->SetBitmap((HBITMAP)m_Bitmap8);
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}