CursorSelectDlg.cpp
上传用户:ywlong9188
上传日期:2022-05-31
资源大小:2656k
文件大小:1k
- // CursorSelectDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "drawObj.h"
- #include "CursorSelectDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCursorSelectDlg dialog
- CCursorSelectDlg::CCursorSelectDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CCursorSelectDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CCursorSelectDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CCursorSelectDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CCursorSelectDlg)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CCursorSelectDlg, CDialog)
- //{{AFX_MSG_MAP(CCursorSelectDlg)
- ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
- ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CCursorSelectDlg message handlers
- void CCursorSelectDlg::OnButton1()
- {
- POSITION pos;
- pos = m_list->FindIndex(4);
- (m_list->GetAt(pos))->OnEditProperties();
- }
- void CCursorSelectDlg::OnButton3()
- {
- POSITION pos;
- pos = m_list->FindIndex(5);
- (m_list->GetAt(pos))->OnEditProperties();
- }