![]() |
ActiveX problem... |
Post Reply
|
| Author | |
thunder0
Newbie
Joined: 11 October 2004 Location: Korea, South Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: ActiveX problem...Posted: 11 October 2004 at 4:15am |
|
Is there anybody who attche CXTPToolbar to the activeX? everything works fine except toolbar button clicked status doesn't change... I use CXTPOffice2003Theme.... I guess it is dll problem.... If anyone who have exprience with that, let me know....^^ |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 October 2004 at 2:11am |
|
ActiveX frame has no WM_IDLEUPDATECMDUI messages. You must emulate it: SetTimer(WM_IDLEUPDATECMDUI, 100, NULL);
void CActiveXDocControl::OnTimer(UINT nIDEvent) |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
fredwobus
Newbie
Joined: 02 September 2004 Location: Austria Status: Offline Points: 22 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 November 2004 at 8:46am |
|
I am also using the CXTPToolBar inside an ActiveX ATL-Control.
So I am also struggling with the CmdUI stuff. I added a messagel handler in my message map BEGIN_MSG_MAP(CMyControl) .. MESSAGE_HANDLER(WM_IDLEUPDATECMDUI, OnIdleUpdateCmdUI) CHAIN_MSG_MAP(CComCompositeControl<CMyControl>) END_MSG_MAP() and I DO get these messages. I have another problem : The wParam of the OnIdleUpdateCmdUI handler means disableIfNoHandler. As I don't have any UpdateUI Handlers - all my buttons are disabled. How do you write an UpdateUI handler for a toolbar UI in an ActiveX control ? Edited by fredwobus |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 November 2004 at 1:21am |
|
same as standard MFC application. add ON_UPDATE_COMMAND_UI(ID, OnUpdateID) in message map of Frame. |
|
|
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 |