How to change my tap from one page to the other?

I have 4 tap... Main, Chat, SOS and Option

at the Option I have this button call To Main.. which allow me to go back to main....


void TapControlList::GoToMainPage(){

m_tabPages[3]->ShowWindow(SW_HIDE);
m_tabPages[0]->ShowWindow(SW_SHOW);
m_tabPages[0]->SetFocus();

}


but this lead to no effect!!!!!!!!!!!!!!!!!!!
 
how come?
wat should be the rite way?
int_acctAsked:
Who is Participating?
 
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
put a breakpoint (F9 key) onto the line
m_tabPages[3]->ShowWindow(SW_HIDE);
Run your code.  Is the function being called?
0
 
AlexFMCommented:
Try CPropertySheet::SetActivePage function.
0
 
int_acctAuthor Commented:
hmmm... how to use it?
0
 
int_acctAuthor Commented:
i'm working on C++ MFC tap control
0
All Courses

From novice to tech pro — start learning today.