PC Review


Reply
Thread Tools Rate Thread

Any one experienced with msoControlActiveX?

 
 
Julia
Guest
Posts: n/a
 
      31st Jan 2004
Any one experienced with msoControlActiveX?

I know it is undocumented,but i am using it on OL2000 and it is work fine

This is part of my ATL code which create an activex control on outlook bar

#import "C:\Program Files\Microsoft Office\Office\MSO9.DLL"

STDMETHODIMP CBar::RegisterBar(IDispatch* Surface)

{


// TODO: Add your implementation code here

CComQIPtr<Office::CommandBarControl> spControl=Surface;

CComQIPtr<Office::_CommandBarActiveX> spActiveX=spControl;


spActiveX->put_ControlCLSID(L"{D1C7914B-62F7-46BF-B5FC-80337049F228}");


spActiveX->put_Enabled(VARIANT_TRUE);

return S_OK;

}





Here is the VB code which uses it
cbrNewToolbar.Protection = msoBarNoChangeDock 'must not be float or else
painting problems accures

Dim myCtl As CommandBarControl

Set myCtl = cbrNewToolbar.Controls.Add(msoControlActiveX, 1, , , True)

Dim x As New cmdbarLib.Bar
x.RegisterBar myCtl


With myCtl

.Position = msoBarTop
.Visible = True
.Height = 32
.Enabled = True
End With







10X


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
msoControlActiveX willem Microsoft Excel Programming 0 10th Aug 2006 02:48 PM
More experienced. orient Spyware Discussion 2 24th Feb 2005 07:39 PM
msoControlActiveX DT Microsoft Outlook Program Addins 1 10th Sep 2004 02:47 PM
msoControlActiveX Igor Smertin Microsoft Outlook Program Addins 0 21st Jul 2004 08:58 AM
msoControlActiveX himanshu upadhyay Microsoft Outlook Program Addins 0 21st Jun 2004 12:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:44 AM.