zenogais
New member
Can anyone help me with these, I can get the tabs and stuff to appear on screen, but I want to add edit controls to the dialog. All I know is that these things seem way too hard and I still haven't found a decent solution, so I must be doing something wrong. This is what I've got so far, any help is greatly appreciated:
Code:
BOOL BugCatcherMain::OnInitDialog()
{
//==========================================================================
// Initialize Dialog And Set The Window Name To The Version String
//==========================================================================
CDialog::OnInitDialog();
SetWindowText(m_strVersion.c_str());
//==========================================================================
// Create CTabCtrl Instance And Add Tabs To This Control
//==========================================================================
CRect rect;
GetClientRect(&rect);
m_tabManager.Create(TCS_TABS | WS_VISIBLE, rect, this, IDC_TAB1);
PSTR tabNames[] = {
"General Log",
"Error Log",
NULL
};
TC_ITEM item;
for(int i = 0; tabNames[i] != NULL; i++)
{
item.mask = TCIF_TEXT;
item.pszText = tabNames[i];
item.cchTextMax = (int)strlen(tabNames[i]);
m_tabManager.InsertItem(i, &item);
}
m_tabManager.BringWindowToTop();
m_tabManager.SetCurSel(0);
return TRUE;
}