📄 tablebottomdlg.cpp
字号:
// tablebottomdlg.cpp : implementation file
//
#include "stdafx.h"
#include "..\gamehigh.h"
#include "..\include\tablebottomdlg.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTableBottomDlg dialog
CTableBottomDlg::CTableBottomDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTableBottomDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CTableBottomDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
hBkBrush =::CreateSolidBrush(RGB(150, 175, 230));
}
CTableBottomDlg::~CTableBottomDlg()
{
SAFE_CHECKPOINTER(hBkBrush)
{
::DeleteObject(hBkBrush);
hBkBrush =NULL;
}
}
void CTableBottomDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTableBottomDlg)
DDX_Control(pDX, IDC_QUITROOM, m_QuitRoom);
DDX_Control(pDX, IDC_GAMEUI, m_GameUi);
DDX_Control(pDX, IDC_FUNCTION, m_Function);
DDX_Control(pDX, IDC_AUTOJOIN, m_AutoJoin);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTableBottomDlg, CDialog)
//{{AFX_MSG_MAP(CTableBottomDlg)
ON_WM_CTLCOLOR()
ON_WM_CREATE()
ON_BN_CLICKED(IDC_AUTOJOIN, OnAutojoin)
ON_BN_CLICKED(IDC_QUITROOM, OnQuitroom)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTableBottomDlg message handlers
BOOL CTableBottomDlg::Create(CWnd* pParentWnd)
{
return CDialog::Create(IDD, pParentWnd);
}
HBRUSH CTableBottomDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
return hBkBrush;
}
int CTableBottomDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1;
return 0;
}
BOOL CTableBottomDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CWnd* pWnd =&m_AutoJoin;
SAFE_CHECKWND(pWnd)
{
m_AutoJoin.SetBkColor(RGB(150, 175, 230));
}
pWnd =&m_Function;
SAFE_CHECKWND(pWnd)
{
m_Function.SetBkColor(RGB(150, 175, 230));
}
pWnd =&m_GameUi;
SAFE_CHECKWND(pWnd)
{
m_GameUi.SetBkColor(RGB(150, 175, 230));
}
pWnd =&m_QuitRoom;
SAFE_CHECKWND(pWnd)
{
m_QuitRoom.SetBkColor(RGB(150, 175, 230));
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CTableBottomDlg::OnAutojoin()
{
}
void CTableBottomDlg::OnQuitroom()
{
CMainFrame* pMainFrame =(CMainFrame*)::AfxGetMainWnd();
SAFE_CHECKWND(pMainFrame)
{
pMainFrame->ShowTableFrame(FALSE, 0);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -