Click here to Skip to main content
15,906,463 members
Home / Discussions / COM
   

COM

 
GeneralRe: Support for ActiveX in MFC projects Pin
Steve S6-Oct-03 3:01
Steve S6-Oct-03 3:01 
GeneralRe: Support for ActiveX in MFC projects Pin
Ed016-Oct-03 3:20
Ed016-Oct-03 3:20 
GeneralAccessing a file's properties from a VC++ application Pin
jopett5-Oct-03 20:35
jopett5-Oct-03 20:35 
GeneralRe: Accessing a file's properties from a VC++ application Pin
algol14-Oct-03 21:59
algol14-Oct-03 21:59 
GeneralCOM Dialog box Pin
Anthony98873-Oct-03 8:48
Anthony98873-Oct-03 8:48 
GeneralRe: COM Dialog box Pin
Abhishek Srivastava19-Oct-03 21:01
Abhishek Srivastava19-Oct-03 21:01 
GeneralUse of CommandButton Active X Pin
Jo Fredrickson2-Oct-03 20:37
Jo Fredrickson2-Oct-03 20:37 
GeneralRe: Use of CommandButton Active X Pin
Amit Dey8-Oct-03 10:41
Amit Dey8-Oct-03 10:41 
I can host the Microsoft Forms2.0 control in a dialog and query it's ICommandButton interface and use it to set the Caption property.


//in stdafx.h
<br />
#import "FM20.dll" named_guids,rename("Picture","IPicture")<br />
using namespace MSForms;<br />

//OnInitDialog...
<br />
AtlAxWinInit();<br />
	CAxWindow wnd;<br />
	RECT rect = {10,10,100,50};<br />
	wnd.Create(m_hWnd, rect, _T("Forms.CommandButton.1"), <br />
	WS_CHILD|WS_VISIBLE|WS_TABSTOP, 0, IDC_CONTROL);  <br />
<br />
	CComPtr < ICommandButton > pDisp;<br />
	wnd.QueryControl( IID_ICommandButton,(LPVOID*)&pDisp);<br />
	ASSERT(pDisp);<br />
	CComBSTR bstrCaption(_T("My Button"));<br />
	pDisp->put_Caption(bstrCaption);<br />


Rose | [Rose] amit Smile | :)


Hush,hush...
thought I heard you call my name now.

Kula Shaker.

Amit Dey

Latest articles at CP -
Writing Word addins
Office addin


GeneralIApplication woes Pin
AndyP12-Oct-03 0:36
AndyP12-Oct-03 0:36 
GeneralRe: IApplication woes Pin
AndyP12-Oct-03 5:16
AndyP12-Oct-03 5:16 
GeneralAn Outlook plug-in issue Pin
dorutzu1-Oct-03 8:04
dorutzu1-Oct-03 8:04 
GeneralRe: An Outlook plug-in issue Pin
Mike Dimmick1-Oct-03 12:36
Mike Dimmick1-Oct-03 12:36 
GeneralRe: An Outlook plug-in issue Pin
dorutzu9-Oct-03 14:09
dorutzu9-Oct-03 14:09 
GeneralThread Pin
Anthony98871-Oct-03 3:55
Anthony98871-Oct-03 3:55 
GeneralRe: Thread Pin
billdwilson31-Oct-03 9:44
billdwilson31-Oct-03 9:44 
GeneralCOM-Marshaling-IUnknown as method param Pin
ceno1-Oct-03 3:29
ceno1-Oct-03 3:29 
GeneralAcrobat Distiller OLE/COM Automation Pin
HooK.NET1-Oct-03 1:49
HooK.NET1-Oct-03 1:49 
GeneralRe: Acrobat Distiller OLE/COM Automation Pin
Steve S1-Oct-03 3:12
Steve S1-Oct-03 3:12 
GeneralRe: Acrobat Distiller OLE/COM Automation Pin
HooK.NET1-Oct-03 3:29
HooK.NET1-Oct-03 3:29 
Generaltyplib marshalling or custom marshalling Pin
umarcool29-Sep-03 4:29
umarcool29-Sep-03 4:29 
QuestionHow to add a new protocol for Internet explorer? Pin
Robert Mao28-Sep-03 5:17
Robert Mao28-Sep-03 5:17 
AnswerRe: How to add a new protocol for Internet explorer? Pin
Tomas Petricek28-Sep-03 10:51
Tomas Petricek28-Sep-03 10:51 
GeneralQuestion about Com Process Pin
FeedFood27-Sep-03 0:01
sussFeedFood27-Sep-03 0:01 
GeneralRe: Question about Com Process Pin
umarcool29-Sep-03 19:14
umarcool29-Sep-03 19:14 
Generalunhandle exception using CreateDispatch Pin
danielferre26-Sep-03 2:04
danielferre26-Sep-03 2:04 

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.