?? ghl.cpp
字號(hào):
// Ghl.cpp : implementation file
//
#include "stdafx.h"
#include "V7.h"
#include "Ghl.h"
#include "V7View.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGhl dialog
CGhl::CGhl(CWnd* pParent /*=NULL*/)
: CDialog(CGhl::IDD, pParent)
{
//{{AFX_DATA_INIT(CGhl)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CGhl::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGhl)
DDX_Control(pDX, IDC_COMBO_TEST, m_cbTest);
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGhl, CDialog)
//{{AFX_MSG_MAP(CGhl)
ON_WM_CLOSE()
ON_WM_DESTROY()
ON_CBN_EDITCHANGE(IDC_COMBO_TEST, OnEditchangeCombo)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGhl message handlers
void CGhl::OnOK()
{
// TODO: Add extra validation here
DestroyWindow();
}
void CGhl::OnCancel()
{
// TODO: Add extra cleanup here
DestroyWindow();
}
void CGhl::OnClose()
{
// TODO: Add your message handler code here and/or call default
DestroyWindow();
}
void CGhl::OnDestroy()
{
CDialog::OnDestroy();
CMainFrame *pFrame;
pFrame = (CMainFrame*)(AfxGetApp()->m_pMainWnd);
pFrame->PostMessage(WM_MYMSG1);
// TODO: Add your message handler code here
}
void CGhl::OnEditchangeCombo()
{
// TODO: Add your control notification handler code here
int index;
index = m_cbTest.GetCurSel();
CV7View *pView;
pView = (CV7View*)((CFrameWnd*)(AfxGetApp()->m_pMainWnd))->GetActiveView();
pView->PostMessage(WM_MYMSG, index);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -