📄 deletescatter.cpp
字号:
// DeleteScatter.cpp : implementation file
//
#include "stdafx.h"
#include "Designer.h"
#include "DeleteScatter.h"
#include "MainFrm.h"
#include "DesignerView.h"
#include "WANGGCZ.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// DeleteScatter dialog
DeleteScatter::DeleteScatter(CWnd* pParent /*=NULL*/)
: CDialog(DeleteScatter::IDD, pParent)
{
//{{AFX_DATA_INIT(DeleteScatter)
m_num = -1;
//}}AFX_DATA_INIT
}
void DeleteScatter::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(DeleteScatter)
DDX_Control(pDX, IDC_LIST2, m_ListControl);
DDX_Radio(pDX, IDC_RADIO_XIAOZA, m_num);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(DeleteScatter, CDialog)
//{{AFX_MSG_MAP(DeleteScatter)
ON_LBN_SELCHANGE(IDC_LIST2, OnSelchangeList2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// DeleteScatter message handlers
BOOL DeleteScatter::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_ListControl.AddString("1");
m_ListControl.AddString("2");
m_ListControl.AddString("3");
m_ListControl.AddString("4");
m_ListControl.AddString("5");
m_ListControl.AddString("6");
m_ListControl.AddString("7");
m_ListControl.SetCurSel(0);
//m_ListControl.SetItemData()
m_position = 0;
//m_Ctr_Radio.SetCheck(2);
m_width.Add(1);
m_width.Add(2);
m_width.Add(3);
m_width.Add(4);
m_width.Add(5);
m_width.Add(6);
m_width.Add(7);
m_num =0;
UpdateData(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void DeleteScatter::OnSelchangeList2()
{
m_position =m_ListControl.GetCurSel();
// TODO: Add your control notification handler code here
}
void DeleteScatter::OnOK()
{
// TODO: Add extra validation here
UpdateData(TRUE);
WANGGCZ wgcz;
CMainFrame * pFrame = static_cast <CMainFrame *>(AfxGetMainWnd());
CDesignerView *m_pShowPhotoView = pFrame->GetMainView();
if(this->m_num == 0)
wgcz.QuZaDian(m_pShowPhotoView->m_picture_color,this->m_width[m_position]);
else if(this->m_num == 1)
wgcz.XiuBu(m_pShowPhotoView->m_picture_color);
else if(this->m_num == 2)
wgcz.Quci(m_pShowPhotoView->m_picture_color,1,m_pShowPhotoView->m_LineNum.x,m_pShowPhotoView->m_LineNum.y);
m_pShowPhotoView->Invalidate(TRUE);
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -