120 121 122 123 124 CDialogEx::OnPaint(); 125 } 126 } 127 128 129 130 HCURSOR CEXIMPORTDlg::OnQueryDragIcon() 131 { 132 return static_cast<HCURSOR>(m_hIcon); 133 } 134 135 void CEXIMPORTDlg::OnTcnSelchangeTabroom(NMHDR *pNMHDR, LRESULT *pResult) 136 { 137 // TODO: 138 INT CurSel = ((CTabCtrl*)GetDlgItem(IDC_TABROOM))->GetCurSel(); 139 switch (CurSel) 140 { 141 case 0: 142 m_PageExport.ShowWindow(TRUE); 143 m_PageImport.ShowWindow(FALSE); 144 break; 145 146 case 1: 147 m_PageExport.ShowWindow(FALSE); 148 m_PageImport.ShowWindow(TRUE); 149 150 } 151 152 *pResult = 0; 153 } 154 155 156 157 PageExport.h 1 #pragma once 2 3 4 // CPageExport 5 6 class CPageExport : public CDialogEx 7 { 8 DECLARE_DYNAMIC(CPageExport) 9 10 public: 11 CPageExport(CWnd* pParent = NULL); // 12 virtual ~CPageExport(); 13
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 CDialogEx::OnPaint(); } } HCURSOR CEXIMPORTDlg::OnQueryDragIcon() { return static_cast<HCURSOR>(m_hIcon); } void CEXIMPORTDlg::OnTcnSelchangeTabroom(NMHDR *pNMHDR, LRESULT *pResult) { // TODO: INT CurSel = ((CTabCtrl*)GetDlgItem(IDC_TABROOM))->GetCurSel(); switch (CurSel) { case 0: m_PageExport.ShowWindow(TRUE); m_PageImport.ShowWindow(FALSE); break; case 1: m_PageExport.ShowWindow(FALSE); m_PageImport.ShowWindow(TRUE); } *pResult = 0; } PageExport.h 1 2 3 4 5 6 7 8 9 10 11 12 13 #pragma once // CPageExport class CPageExport : public CDialogEx { DECLARE_DYNAMIC(CPageExport) public: CPageExport(CWnd* pParent = NULL); // virtual ~CPageExport();
20160906170280058005.docx