Make these controls visible ..., 1st tab page |
Resume :
|
Details ...
// TestVC0Dlg.cpp : implementation file // ... ................................................................................................................................................ ................................................................................................................................................. ///////////////////////////////////////////////////////////////////////////// // CTestVC0Dlg message handlers BOOL CTestVC0Dlg::OnInitDialog() { CDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != NULL) { CString strAboutMenu; strAboutMenu.LoadString(IDS_ABOUTBOX); if (!strAboutMenu.IsEmpty()) { pSysMenu->AppendMenu(MF_SEPARATOR); pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } } // Set the icon for this dialog. The framework does this automatically // when the application's main window is not a dialog SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon //Define the header row of the List Control int strWidth1 = m_searchlist.GetStringWidth(_T("00000")); m_searchlist.InsertColumn(1, _T("Record"), LVCFMT_LEFT,2*strWidth1, 1); m_searchlist.InsertColumn(2, _T("Bk"), LVCFMT_LEFT, strWidth1, 1); m_searchlist.InsertColumn(3, _T("Title"), LVCFMT_LEFT, 4*strWidth1, 1); m_searchlist.InsertColumn(4, _T("Ch"), LVCFMT_LEFT, strWidth1, 1); m_searchlist.InsertColumn(5, _T("Verse"), LVCFMT_LEFT, 3*strWidth1/2, 1); //Make these controls visible - (1st tab page) m_searchlist.ShowWindow(SW_SHOW); m_edwordcontrol.ShowWindow(SW_SHOW); m_display.ShowWindow(SW_SHOW); m_statictype.ShowWindow(SW_SHOW); m_staticfoundcontrol.ShowWindow(SW_SHOW); // TODO: Add extra initialization here return TRUE; // return TRUE unless you set the focus to a control } ................................................................................................................................................ ................................................................................................................................................. ... |
The MFC ClassWizard dialog box appears, click the Message Maps tab. To accept the default Member function name - OnSelchangeTab1 display(or rename it) and then click OK. The new item message - OnSelchangeTab1...... ON_IDC_TAB1:TCN_SELCHANGE appearing in the Member functions list. ClassWizard makes changes to TestVC0Dlg.h and TestVC0Dlg.cpp files after you’ve added the member function. Examine these changes ... TestVC0Dlg.h file - the new Text Code is red.
TestVC0Dlg.cpp
file - the new
Text Code is red.
|
Choose Edit Code -or- Double-click the function name. The insertion point moves to the function in theTestVC0Dlg.cpp file. Edit the Text Code, examine these changes ... TestVC0Dlg.cpp file - the new Text Code is red.
|