📄 hanshubodlg.cpp
字号:
// HanshuboDlg.cpp : implementation file
//
#include "stdafx.h"
#include "DWG.h"
#include "HanshuboDlg.h"
#include "DWGDoc.h"
#include "DWGView.h"
#include "math.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHanshuboDlg dialog
CHanshuboDlg::CHanshuboDlg(CWnd* pParent /*=NULL*/)
: CDialog(CHanshuboDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CHanshuboDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CHanshuboDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CHanshuboDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CHanshuboDlg, CDialog)
//{{AFX_MSG_MAP(CHanshuboDlg)
ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
ON_BN_CLICKED(IDC_OK, OnOk)
ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CHanshuboDlg message handlers
//DEL void CHanshuboDlg::OnSelchangeTab(NMHDR* pNMHDR, LRESULT* pResult)
//DEL {
//DEL // TODO: Add your control notification handler code here
//DEL
//DEL *pResult = 0;
//DEL }
int CHanshuboDlg::DoModal()
{
// TODO: Add your specialized code here and/or call the base class
return CDialog::DoModal();
}
void CHanshuboDlg::OnRadio2()
{
// TODO: Add your control notification handler code here
/* int i;
double pi=3.1415926;
for (i=0;i<256;i++)
{
if(i<127)
hanshuView.data[i]=int(255*sin(2*pi*(i-127)/127)/(2*pi*(i-127)/127));
else
hanshuView.data[127]=255;
}
*/
CDialog::OnOK ();
// hanshu.Hanshubo();
// MessageBox("hah");
}
void CHanshuboDlg::OnOk()
{
// TODO: Add your control notification handler code here
CDialog::OnOK ();
}
void CHanshuboDlg::OnRadio1()
{
// TODO: Add your control notification handler code here
MessageBox("呵呵,没有作好!!");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -