📄 clrdlg.cpp
字号:
// clrdlg.cpp : implementation file
//
#include "stdafx.h"
#include "dlq.h"
#include "clrdlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Cclrdlg dialog
Cclrdlg::Cclrdlg(CWnd* pParent /*=NULL*/)
: CDialog(Cclrdlg::IDD, pParent)
{
//m_combo1.ResetContent();
//{{AFX_DATA_INIT(Cclrdlg)
//}}AFX_DATA_INIT
}
void Cclrdlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Cclrdlg)
DDX_Control(pDX, IDC_COMBO1, m_combo1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Cclrdlg, CDialog)
//{{AFX_MSG_MAP(Cclrdlg)
ON_CBN_DROPDOWN(IDC_COMBO1, OnDropdownCombo1)
ON_CBN_CLOSEUP(IDC_COMBO1, OnCloseupCombo1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Cclrdlg message handlers
void Cclrdlg::OnDropdownCombo1()
{
CString s;
for(int i=1;i<13;i++){s.Format("%d",i);
m_combo1.AddString(s);}
s.Format("%d",m_select);
m_combo1.SelectString(-1,s);
// TODO: Add your control notification handler code here
}
void Cclrdlg::OnCloseupCombo1()
{
m_select=m_combo1.GetCurSel();
// TODO: Add your control notification handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -