OperateDlg.cpp
上传用户:pumpssky
上传日期:2007-12-07
资源大小:110k
文件大小:3k
- // OperateDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "gmark.h"
- #include "OperateDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // COperateDlg dialog
- COperateDlg::COperateDlg(CWnd* pParent /*=NULL*/)
- : CDialog(COperateDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(COperateDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void COperateDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(COperateDlg)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(COperateDlg, CDialog)
- //{{AFX_MSG_MAP(COperateDlg)
- ON_BN_CLICKED(IDC_BUTTON_LOGON, OnButtonLogon)
- ON_BN_CLICKED(IDC_BUTTON_CONNECT, OnButtonConnect)
- ON_BN_CLICKED(IDC_BUTTON_CLOSE, OnButtonClose)
- ON_BN_CLICKED(IDC_BUTTON_LOGOFF, OnButtonLogoff)
- ON_BN_CLICKED(IDC_BUTTON_DIAL, OnButtonDial)
- ON_BN_CLICKED(IDC_BUTTON_HANGUP, OnButtonHangup)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // COperateDlg message handlers
- BOOL COperateDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- // TODO: Add extra initialization here
-
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void COperateDlg::OnButtonConnect()
- {
- // TODO: Add your control notification handler code here
- CWnd * pWnd = GetParent()->GetParent();
- pWnd->PostMessage(WM_COMMAND, (BN_CLICKED<<8) + IDC_BUTTON_CONNECT, 0);
- }
- void COperateDlg::OnButtonClose()
- {
- // TODO: Add your control notification handler code here
- CWnd * pWnd = GetParent()->GetParent();
- pWnd->PostMessage(WM_COMMAND, (BN_CLICKED<<8) + IDC_BUTTON_CLOSE, 0);
- }
- void COperateDlg::OnButtonLogon()
- {
- // TODO: Add your control notification handler code here
- CWnd * pWnd = GetParent()->GetParent();
- pWnd->SendMessage(WM_COMMAND, (BN_CLICKED<<8) + IDC_BUTTON_LOGON, 0);
- }
- void COperateDlg::OnButtonLogoff()
- {
- // TODO: Add your control notification handler code here
- CWnd * pWnd = GetParent()->GetParent();
- pWnd->SendMessage(WM_COMMAND, (BN_CLICKED<<8) + IDC_BUTTON_LOGOFF, 0);
- }
- void COperateDlg::OnButtonDial()
- {
- // TODO: Add your control notification handler code here
- CWnd * pWnd = GetParent()->GetParent();
- pWnd->SendMessage(WM_COMMAND, (BN_CLICKED<<8) + IDC_BUTTON_DIAL, 0);
- }
- void COperateDlg::OnButtonHangup()
- {
- // TODO: Add your control notification handler code here
- CWnd * pWnd = GetParent()->GetParent();
- pWnd->SendMessage(WM_COMMAND, (BN_CLICKED<<8) + IDC_BUTTON_HANGUP, 0);
- }