tablebottomdlg.cpp
资源名称:1731.rar [点击查看]
上传用户:swkcbjrc
上传日期:2016-04-02
资源大小:45277k
文件大小:3k
源码类别:
游戏
开发平台:
Visual C++
- // tablebottomdlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "..gamehigh.h"
- #include "..includetablebottomdlg.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);
- }
- }