⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dicemainproppage.cpp

📁 不好意思
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -