Hi there
I have a dialog based app.,and I placed an SSTab on my dialog form.then I planed to place a frame on the first tab of SSTab and a text edit control in htis frame.but iI saw that the frame and edit box controls apear in the second tab too.so I wrote this code in the TCL_SELCHANGE message event of the SSTab.It works well now,but i think there is a simple way for this and I don't like this stupid solving way.
my codes:
void CTxRxDlg::OnSelchangeMainTab(NMHDR* pNMHDR, LRESULT* pResult)
{
if (m_MainTab.GetCurFocus()==1)
{
m_frmFile.EnableWindow(FALSE);
m_edtFile.EnableWindow(FALSE);
m_frmFile.ShowWindow(SW_HIDE);
m_edtFile.ShowWindow(SW_HIDE);
}
else
{
m_frmFile.EnableWindow(TRUE);
m_edtFile.EnableWindow(TRUE);
m_frmFile.ShowWindow(SW_SHOW);
m_edtFile.ShowWindow(SW_SHOW);
}
*pResult = 0;
}
Now dears,is there any simple and pure way to solve this problem?(if can call it problem)
Thanks in advance