dicemainproppage.cpp

来自「不好意思」· C++ 代码 · 共 43 行

CPP
43
字号
// DiceMainPropPage.cpp : Implementation of CDiceMainPropPage

#include "stdafx.h"
#include "DiceMainPropPage.h"


// CDiceMainPropPage


LRESULT CDiceMainPropPage::OnCbnSelchangeDicecolor(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
    // TODO: Add your control notification handler code here
    SetDirty(TRUE);
    return 0;
}

LRESULT CDiceMainPropPage::OnEnChangeTimestoroll(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
    // TODO:  If this is a RICHEDIT control, the control will not
    // send this notification unless you override the __super::OnInitDialog()
    // function and call CRichEditCtrl().SetEventMask()
    // with the ENM_CHANGE flag ORed into the mask.

    // TODO:  Add your control notification handler code here
    SetDirty(TRUE);
    return 0;
}

LRESULT CDiceMainPropPage::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
    HWND hWndComboBox = GetDlgItem(IDC_DICECOLOR);
    ::SendMessage(hWndComboBox,
                  CB_ADDSTRING,
                  0, (LPARAM)"White");    
    ::SendMessage(hWndComboBox,
                  CB_ADDSTRING,
                  0, (LPARAM)"Blue");    
    ::SendMessage(hWndComboBox,
                  CB_ADDSTRING,
                  0, (LPARAM)"Red");    
    return TRUE;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?