DlgShortkey.cpp
资源名称:ROA3.40.rar [点击查看]
上传用户:tianheyiqi
上传日期:2010-04-16
资源大小:282k
文件大小:2k
源码类别:
外挂编程
开发平台:
Visual C++
- // DlgShortkey.cpp : implementation file
- //
- #include "stdafx.h"
- #include "roa.h"
- #include "DlgShortkey.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDlgShortkey dialog
- CDlgShortkey::CDlgShortkey(CWnd* pParent /*=NULL*/)
- : CDialog(CDlgShortkey::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CDlgShortkey)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CDlgShortkey::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDlgShortkey)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDlgShortkey, CDialog)
- //{{AFX_MSG_MAP(CDlgShortkey)
- ON_CBN_EDITCHANGE(IDC_CMB_CTRLF5, OnEditchangeCmbCtrlf5)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDlgShortkey message handlers
- BOOL CDlgShortkey::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // TODO: Add extra initialization here
- CComboBox *pCombo;
- for(int i=0; i<12; i++)
- {
- pCombo = (CComboBox*)(GetDlgItem(IDC_CMB_CTRLF1+i));
- for(int j=0; j<UFNUM; j++)
- {
- pCombo->AddString(UFDESC[j]);
- }
- pCombo->SetCurSel(userfuncs[i]);
- }
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void CDlgShortkey::OnOK()
- {
- // TODO: Add extra validation here
- CComboBox *pCombo;
- for(int i=0; i<12; i++)
- {
- pCombo = (CComboBox*)(GetDlgItem(IDC_CMB_CTRLF1+i));
- userfuncs[i] = (USERFUNCTION)pCombo->GetCurSel();
- }
- CDialog::OnOK();
- }
- void CDlgShortkey::OnEditchangeCmbCtrlf5()
- {
- // TODO: Add your control notification handler code here
- }