for .cpp
for .h
i want to put a radio button in 1 tab, and a edit box under another, how do i do this? how do i get them to hide/appear when a certain tab is selected?
Code:
BOOL CtabDlg::OnInitDialog()
{
CDialog::OnInitDialog();
//............
// TODO: Add extra initialization here
TC_ITEM TabCtrlItem;
TabCtrlItem.mask = TCIF_TEXT;
TabCtrlItem.pszText = "2DFBP";
m_Color.InsertItem( 0, &TabCtrlItem );
TabCtrlItem.pszText = "";
m_Color.InsertItem( 1, &TabCtrlItem );
return TRUE;
}
void CtabDlg::OnTcnSelchangeTab1(NMHDR *pNMHDR, LRESULT *pResult)
{
// TODO: Add your control notification handler code here
*pResult = 0;
}
Code:
class CtabDlg : public CDialog
{
//..................
public:
afx_msg void OnTcnSelchangeTab1(NMHDR *pNMHDR, LRESULT *pResult);
CTabCtrl m_Color;
};
i want to put a radio button in 1 tab, and a edit box under another, how do i do this? how do i get them to hide/appear when a certain tab is selected?