www.gusucode.com > VC++远程桌面监控系统-源码程序 > VC++远程桌面监控系统-源码程序\code\myproject\Client\RemoteControlClient\ColorMode.cpp
#include "ColorMode.h" #include "resource.h" //Download by http://www.NewXing.com CColorMode::CColorMode() { } CColorMode::~CColorMode() { } CColorMode::OnInitDialog(HWND hDlg,HWND hwndFocus, LPARAM lParam) { if (m_bmBitsPixel == 4) Button_SetCheck(GetDlgItem(hDlg,IDC_RADIO0),TRUE); else Button_SetCheck(GetDlgItem(hDlg,IDC_RADIO1),TRUE); return TRUE; } void CColorMode::OnCommand(HWND hDlg,int iId,HWND hWndCtl,UINT iCodeNotify) { if (iId == IDOK) { if (Button_GetState(GetDlgItem(hDlg,IDC_RADIO0))) m_bmBitsPixel = 4; else if (Button_GetState(GetDlgItem(hDlg,IDC_RADIO1))) m_bmBitsPixel = 8; EndDialog(hDlg,TRUE); } else if (iId == IDCANCEL) EndDialog(hDlg,FALSE); }