?? recthw.cpp
字號:
// RECTHW.cpp : implementation file
//
#include "stdafx.h"
#include "direction2.h"
#include "RECTHW.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRECTHW dialog
CRECTHW::CRECTHW(CWnd* pParent /*=NULL*/)
: CDialog(CRECTHW::IDD, pParent)
{
//{{AFX_DATA_INIT(CRECTHW)
m_high = 0;
m_width = 0;
//}}AFX_DATA_INIT
m_pParentWnd=pParent;
}
void CRECTHW::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CRECTHW)
DDX_Text(pDX, IDC_EDIT1, m_high);
DDX_Text(pDX, IDC_EDIT2, m_width);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CRECTHW, CDialog)
//{{AFX_MSG_MAP(CRECTHW)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CRECTHW message handlers
void CRECTHW::OnOK()
{
// TODO: Add extra validation here
this->UpdateData(true);
int index = m_high;
int index2=m_width;
m_pParentWnd->SendMessage(WM_RECT_CHANGE,0,MAKELPARAM((WORD)index,(WORD)index2));
CDialog::OnOK();
}
void CRECTHW::Setinfo(int width,int index)
{
m_width=width;
m_high=index;
this->UpdateData(false);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -