![]() |
Is ON_UPDATE_COMMAND_UI/ON_XTP_EXECUTE on |
Post Reply ![]() |
Author | |
cnmmd ![]() Newbie ![]() Joined: 09 May 2006 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 09 May 2006 at 11:10pm |
Is ON_UPDATE_COMMAND_UI/ON_XTP_EXECUTE only avalid in MainFrame?
A SDI application,a toolbar,5 items on it. CMainFrame::OnCreateControl(....) { if ( lpCreateControl->nID == IDC_COMBOBOX_1 ) { lpCreateControl->pControl = new CXTPControlComboBox; } else if (lpCreateControl->nID == IDC_EDT_1) { lpCreateControl->pControl = new CXTPControlEdit; } else if (lpCreateControl->nID == IDC_BUTTON_1) { lpCreateControl->pControl = new CXTPControlButton; } } if I locate ON_UPDATE_COMMAND_UI/ON_XTP_EXECUTE in MainFrame,it can get the button clicked message. now,I want in MyView recieve the button clicked message,and get the combobox select index,and get the edit text.how to do it? |
|
![]() |
|
cnmmd ![]() Newbie ![]() Joined: 09 May 2006 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Oh,I know why it can not recieve the message!
I used CXTPTabControl in MyView; then AddView to tabControl; when a tabView activate,MyView can not recieve the message! Is it? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, It must work. Check our TabbedView sample. Check that you have pFrame->SetActiveView(pView); in OnSelectedChanged event. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |