// TODO: Add extra initialization here
// { ((CButton*) GetDlgItem(IDC_RADIO1))->SetCheck(TRUE);
...
// }
return TRUE; // return TRUE unless you set the focus to a control
}
void CPractice4_1Dlg::OnButtonAdd()
{
// TODO: Add your control notification handler code here UpdateData(TRUE);
if (m_bSub)
...
... }
void CPractice4_1Dlg::OnRadio1()
{
// TODO: Add your control notification handler code here m_nSelObject = 1;
... }
void CPractice4_1Dlg::OnRadio2()
{
// TODO: Add your control notification handler code here m_nSelObject = 2;
... }
void CPractice4_1Dlg::OnCheck1()
{
// TODO: Add your control notification handler code here if ( !m_bChecked[0] )
{
m_bChecked[0] = TRUE; ... }
else
{ m_bChecked[0] = FALSE; ... } }
void CPractice4_1Dlg::OnCheck2()
{
// TODO: Add your control notification handler code here if ( !m_bChecked[1] ) {
m_bChecked[1] = TRUE;
... } else { m_bChecked[1] = FALSE;
... } }
CBitmapButton
.AutoLoad()
IDD_ABOUTBOX DIALOGEX 0, 0, 235, 103
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
WS_SYSMENU
CAPTION "Ex06e 정보"
FONT 9, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
LTEXT "Ex06e 버전 1.0",IDC_STATIC,40,10,119,8,SS_NOPREFIX
LTEXT "Copyright (c) 2003",IDC_STATIC,40,25,119,8
DEFPUSHBUTTON "확인",IDOK,178,7,50,16,WS_GROUP
CONTROL "복사",IDC_BUTTON1,"Button",BS_OWNERDRAW | WS_TABSTOP,15,
71,50,14
...
END
// TODO: Add extra initialization here
// { VERIFY(m_editCopy.AutoLoad(IDC_BUTTON1, this));
...
// } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
CButtonST -> CButton
.SubclassDlgItem() // DDX_Control()
.SetIcon()
BTNST_AUTO_GRAY
.DrawBorder()
.SetColor()
.SetTooltipText()
class CTry01Dlg : public CDialog
{
// Construction
public:
CTry01Dlg(CWnd* pParent = NULL); // standard constructor
// TODO: Add extra initialization here
// {
m_btn.SetIcon(IDI_ICON1, (int)BTNST_AUTO_GRAY);
m_btn.DrawBorder(FALSE);
// }
return TRUE; // return TRUE unless you set the focus to a control
}