Click here to Skip to main content
15,881,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to display Russian characters on a non-unicode dialog? Pin
Keith Worden29-Apr-09 4:40
Keith Worden29-Apr-09 4:40 
AnswerRe: How to display Russian characters on a non-unicode dialog? Pin
Benjamin Bruno29-Apr-09 18:48
Benjamin Bruno29-Apr-09 18:48 
GeneralRe: How to display Russian characters on a non-unicode dialog? Pin
Keith Worden30-Apr-09 0:02
Keith Worden30-Apr-09 0:02 
QuestionSwitching between tabs?? Pin
bosfan29-Apr-09 1:22
bosfan29-Apr-09 1:22 
AnswerRe: Switching between tabs?? Pin
Keith Worden29-Apr-09 2:06
Keith Worden29-Apr-09 2:06 
GeneralRe: Switching between tabs?? Pin
bosfan29-Apr-09 2:43
bosfan29-Apr-09 2:43 
GeneralRe: Switching between tabs?? Pin
Keith Worden29-Apr-09 2:53
Keith Worden29-Apr-09 2:53 
AnswerRe: Switching between tabs?? Pin
Stuart Dootson29-Apr-09 2:07
professionalStuart Dootson29-Apr-09 2:07 
termal wrote:
m_cTabAll.SetCurSel(0);


That's the one that will work. I've used it in my code successfully. However, I don't think it will fire your TCN_SELCHANGE handler - you'll need to do that yourself.

The structure I've used in the past is something like this:

MyDlg::OnTabChangedHandler(arguments)
{
   ChangeTab(tab.GetCurSel());
}

void MyDlg::ChangeTab(int tab)
{
   Do stuff
   tab.SetCurSel(tab);
}

MyDlg::SomeButtonClickedHandler()
{
   ChangeTab(0);
}


so - move the 'on tab changed' actions to a separate routine that you can call from other places.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

AnswerRe: Switching between tabs?? Pin
Virendra Kulkarni30-Apr-09 0:28
Virendra Kulkarni30-Apr-09 0:28 
Question[Message Deleted] Pin
Padmanabha_M29-Apr-09 0:56
Padmanabha_M29-Apr-09 0:56 
AnswerRe: Folder Navigation Pin
_AnsHUMAN_ 29-Apr-09 1:24
_AnsHUMAN_ 29-Apr-09 1:24 
AnswerRe: Folder Navigation Pin
David Crow29-Apr-09 4:24
David Crow29-Apr-09 4:24 
QuestionPath Check Pin
Davitor29-Apr-09 0:56
Davitor29-Apr-09 0:56 
AnswerRe: Path Check Pin
Rajesh R Subramanian29-Apr-09 1:01
professionalRajesh R Subramanian29-Apr-09 1:01 
AnswerRe: Path Check Pin
Davitor29-Apr-09 1:02
Davitor29-Apr-09 1:02 
AnswerRe: Path Check Pin
Jijo.Raj29-Apr-09 1:02
Jijo.Raj29-Apr-09 1:02 
AnswerRe: Path Check Pin
Hamid_RT29-Apr-09 4:38
Hamid_RT29-Apr-09 4:38 
AnswerRe: Path Check Pin
Joe Woodbury29-Apr-09 10:44
professionalJoe Woodbury29-Apr-09 10:44 
QuestionInitialize variable in static library [modified] Pin
samira forooghi29-Apr-09 0:13
samira forooghi29-Apr-09 0:13 
AnswerRe: Initialize variable in static library Pin
CPallini29-Apr-09 0:20
mveCPallini29-Apr-09 0:20 
GeneralRe: Initialize variable in static library Pin
samira forooghi29-Apr-09 0:30
samira forooghi29-Apr-09 0:30 
GeneralRe: Initialize variable in static library Pin
Stephen Hewitt29-Apr-09 0:30
Stephen Hewitt29-Apr-09 0:30 
GeneralRe: Initialize variable in static library Pin
Stuart Dootson29-Apr-09 0:36
professionalStuart Dootson29-Apr-09 0:36 
GeneralRe: Initialize variable in static library Pin
Maximilien29-Apr-09 0:43
Maximilien29-Apr-09 0:43 
GeneralRe: Initialize variable in static library Pin
Stuart Dootson29-Apr-09 0:46
professionalStuart Dootson29-Apr-09 0:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.