Hi Phil
>> Isn't that the default?
Yes I do have it in the default too, because when I start
the application then the first tab is already has been chosen.
>> Or do you mean, _every_ time the application has been maximized? Which,
to
>> me, would not be good UI.
Yes every time. My application is real time updated,
assume that the tab number 3 has been selected,
and then the whole application has been minimized.
I have another program for giving a signal to
the former application(the real time app), and
when the signal receives, the app. should be
maximized and the first tab visualized.
Now I could do maximizing the application
but with the tab thing, getting no where:
This is what I've done:
WINDOWPLACEMENT m;
((CMainFrame*)((CCmApp
*)AfxGetApp())->GetMainWnd())->GetWindowPlacement(&m);
if (m.showCmd == SW_SHOWMINIMIZED)
{
m.showCmd = SW_SHOWMAXIMIZED;
((CMainFrame*)((CCmApp*)AfxGetApp())->GetMainWnd())->SetWindowPlacement(&m);
//I checked it separetly and it works well
CTabCtrl m_TabControl;
int tab_index =1;
m_TabControl.SetCurSel(tab_index);
}
And this is what I get:
_AFXCMN_INLINE int CTabCtrl::SetCurSel(int nItem)
{ ASSERT(::IsWindow(m_hWnd)); return (int)::SendMessage(m_hWnd,
TCM_SETCURSEL, nItem, 0L); }
file: AFXCMN.INL, there m_hWnd= 0x000000, nItem = 1.
/Mostafa
** Confidentiality Statement and Disclaimer **
Proprietary or confidential information belonging to Gambro AB or to one of
its affiliated companies may be contained in this message. If you are not
the addressee indicated in this message (or responsible for the delivery of
the message to such person), please do not copy or deliver this message to
anyone. In such case, please destroy this message and notify the sender by
reply e-mail. Please advise the sender immediately if you or your employer
do not consent to Internet e-mail for messages of this kind.
Opinions, conclusions and other information in this message that pertain to
the sender's employer and its products and services represent the opinion of
the sender and do not necessarily represent or reflect the views and
opinions of the employer.
** End of Statement **