ClassWizard makes changes - 2nd tab page |
ClassWizard,
add a member variables, the changes to ...
// TestVC0Dlg.h : header file // #if !defined(AFX_TESTVC0DLG_H__073CEC4B_1920_11D7_BFCA_87C57485DA49__INCLUDED_) #define AFX_TESTVC0DLG_H__073CEC4B_1920_11D7_BFCA_87C57485DA49__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CTestVC0Dlg dialog class CTestVC0Dlg : public CDialog { // Construction public: CTestVC0Dlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CTestVC0Dlg) enum { IDD = IDD_TESTVC0_DIALOG }; CComboBox m_combotitle; CComboBox m_combochapter; CStatic m_staticverse; CStatic m_statictitle; CStatic m_staticsel; CStatic m_staticchapter; CStatic m_staticbook; CComboBox m_comboverserecno; CComboBox m_comboverse; CComboBox m_combotitlerecno; CComboBox m_combochapterrecno; CComboBox m_combobookrecno; CComboBox m_combobook; CStatic m_statictype; CStatic m_staticfoundcontrol; CListCtrl m_searchlist; CEdit m_edwordcontrol; CButton m_display; CTabCtrl m_tab1; CString m_book; CString m_chapter; CString m_title; CString m_verse; CString m_textdata; CString m_edword; CString m_staticfound; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTestVC0Dlg) ... ................................................................................................................................................... ................................................................................................................................................... |
// TestVC0Dlg.cpp : implementation file // #include "stdafx.h" #include "TestVC0.h" #include "TestVC0Dlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About class CAboutDlg : public CDialog { (.......................) }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { (.......................) } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { (.......................) } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CTestVC0Dlg dialog CTestVC0Dlg::CTestVC0Dlg(CWnd* pParent /*=NULL*/) : CDialog(CTestVC0Dlg::IDD, pParent) { //{{AFX_DATA_INIT(CTestVC0Dlg) m_book = _T(""); m_chapter = _T(""); m_title = _T(""); m_verse = _T(""); m_textdata = _T(""); m_edword = _T(""); m_staticfound = _T(""); //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); m_pDB = NULL; m_pRS = NULL; m_pRSW0 = NULL; } void CTestVC0Dlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CTestVC0Dlg) DDX_Control(pDX, IDC_COMBO_TITLE, m_combotitle); DDX_Control(pDX, IDC_COMBO_CHAPTER, m_combochapter); DDX_Control(pDX, IDC_STATICVERSE, m_staticverse); DDX_Control(pDX, IDC_STATICTITLE, m_statictitle); DDX_Control(pDX, IDC_STATICSEL, m_staticsel); DDX_Control(pDX, IDC_STATICCHAPTER, m_staticchapter); DDX_Control(pDX, IDC_STATICBOOK, m_staticbook); DDX_Control(pDX, IDC_COMBO_VERSE_RECNO, m_comboverserecno); DDX_Control(pDX, IDC_COMBO_VERSE, m_comboverse); DDX_Control(pDX, IDC_COMBO_TITLE_RECNO, m_combotitlerecno); DDX_Control(pDX, IDC_COMBO_CHAPTER_RECNO, m_combochapterrecno); DDX_Control(pDX, IDC_COMBO_BOOK_RECNO, m_combobookrecno); DDX_Control(pDX, IDC_COMBO_BOOK, m_combobook); DDX_Control(pDX, IDC_STATICTYPE, m_statictype); DDX_Control(pDX, IDC_STATICFOUND, m_staticfoundcontrol); DDX_Control(pDX, IDC_SEARCHLIST, m_searchlist); DDX_Control(pDX, IDC_EDWORD, m_edwordcontrol); DDX_Control(pDX, IDC_DISPLAY, m_display); DDX_Control(pDX, IDC_TAB1, m_tab1); DDX_Text(pDX, IDC_BOOK, m_book); DDX_Text(pDX, IDC_CHAPTER, m_chapter); DDX_Text(pDX, IDC_TITLE, m_title); DDX_Text(pDX, IDC_VERSE, m_verse); DDX_Text(pDX, IDC_TEXTDATA, m_textdata); DDX_Text(pDX, IDC_EDWORD, m_edword); DDX_Text(pDX, IDC_STATICFOUND, m_staticfound); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CTestVC0Dlg, CDialog) //{{AFX_MSG_MAP(CTestVC0Dlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() //}}AFX_MSG_MAP END_MESSAGE_MAP() ... ................................................................................................................................................... ................................................................................................................................................... |