Click here to Skip to main content
15,887,906 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionget focus on ActiveX control in MFC Dialog Pin
MrKBA22-Mar-11 0:01
MrKBA22-Mar-11 0:01 
Questionaccessing ActiveX array Pin
opti99921-Mar-11 23:33
opti99921-Mar-11 23:33 
AnswerRe: accessing ActiveX array Pin
Michael Dunn22-Mar-11 20:47
sitebuilderMichael Dunn22-Mar-11 20:47 
QuestionSinging COM Object Pin
Anders Molin21-Mar-11 2:31
professionalAnders Molin21-Mar-11 2:31 
AnswerRe: Singing COM Object Pin
Michael Dunn22-Mar-11 20:51
sitebuilderMichael Dunn22-Mar-11 20:51 
GeneralRe: Singing COM Object Pin
Anders Molin23-Mar-11 8:12
professionalAnders Molin23-Mar-11 8:12 
QuestionCreate my COM object from JScript Pin
Anders Molin21-Mar-11 2:29
professionalAnders Molin21-Mar-11 2:29 
QuestionHow to disable/enable the button on CommandBar in add-in application? Pin
whiteclouds17-Mar-11 22:13
whiteclouds17-Mar-11 22:13 
Hi all!
Now I am developing an add-in application. I had instantiated a sub-class of COM to expose the interface to Word. Then I add some commandbar buttons on the command bar. When user click a specified button, a data will be inserted into word document. The data inserted is created by an object of another class of mine, which is derived some interfaces of Word. This class can handle the event come from Word application.
When the data was inserted, user can right-click on it. Then a pop-up menu will be displayed. When an item was chosen, I need to disable the button on command bar.

Problem: I don't know how to control the button within data class. I had tried to transport the pointer of button into data class. But no appropriate way to implement it. I want to write a method and expose it as a member of interface. But I can't find a appropriate type to transport Office::CommandBarButton. I try to use IDispatch* to do it. But the code to convert and save the pointer can't through compilation. I don't know what I can do now. Is there some one can help me? Thank you! Smile | :)


Sincerely.
There is some white cloud floating on the blue sky. That's the landscape I like.

QuestionHow to get IDOK / IDCANCEL command message from an non-modal dialog set as client in CFrameWindowImpl? Pin
Philipp Kursawe11-Mar-11 2:46
Philipp Kursawe11-Mar-11 2:46 
QuestionRe: How to get IDOK / IDCANCEL command message from an non-modal dialog set as client in CFrameWindowImpl? [modified] Pin
Cool_Dev11-Mar-11 3:20
Cool_Dev11-Mar-11 3:20 
AnswerRe: How to get IDOK / IDCANCEL command message from an non-modal dialog set as client in CFrameWindowImpl? Pin
Alain Rist11-Mar-11 9:47
Alain Rist11-Mar-11 9:47 
GeneralRe: How to get IDOK / IDCANCEL command message from an non-modal dialog set as client in CFrameWindowImpl? Pin
Philipp Kursawe17-Mar-11 0:24
Philipp Kursawe17-Mar-11 0:24 
GeneralRe: How to get IDOK / IDCANCEL command message from an non-modal dialog set as client in CFrameWindowImpl? Pin
Alain Rist17-Mar-11 9:49
Alain Rist17-Mar-11 9:49 
QuestionUsing CContainedWindowT in a base class causes assert in conrete class Pin
Philipp Kursawe10-Mar-11 20:39
Philipp Kursawe10-Mar-11 20:39 
AnswerRe: Using CContainedWindowT in a base class causes assert in conrete class Pin
Alain Rist11-Mar-11 10:13
Alain Rist11-Mar-11 10:13 
GeneralRe: Using CContainedWindowT in a base class causes assert in conrete class Pin
Philipp Kursawe13-Mar-11 11:14
Philipp Kursawe13-Mar-11 11:14 
QuestionHow to create an flicker free owner draw listbox using CDoubleBufferWindowImpl? Pin
Philipp Kursawe10-Mar-11 17:57
Philipp Kursawe10-Mar-11 17:57 
AnswerRe: How to create an flicker free owner draw listbox using CDoubleBufferWindowImpl? Pin
Alain Rist13-Mar-11 6:00
Alain Rist13-Mar-11 6:00 
GeneralRe: How to create an flicker free owner draw listbox using CDoubleBufferWindowImpl? Pin
Philipp Kursawe13-Mar-11 11:18
Philipp Kursawe13-Mar-11 11:18 
QuestionQuestion about draw my own object in Word. Pin
whiteclouds8-Mar-11 16:03
whiteclouds8-Mar-11 16:03 
QuestionProblems with MFCTabCtrl/MDITabbedControl Pin
Dansveen7-Mar-11 10:26
Dansveen7-Mar-11 10:26 
QuestionNewline as <<ALT + ENTER>> in PreTranslateMessage for MultilineEdit Control Pin
Vishal_K897-Mar-11 0:13
Vishal_K897-Mar-11 0:13 
AnswerRe: Newline as > in PreTranslateMessage for MultilineEdit Control Pin
Cool_Dev7-Mar-11 2:07
Cool_Dev7-Mar-11 2:07 
Questionwrite a C program to find the area and perimeter of a circle? Pin
valyvachouama3-Mar-11 5:54
valyvachouama3-Mar-11 5:54 
AnswerRe: write a C program to find the area and perimeter of a circle? Pin
_AnsHUMAN_ 3-Mar-11 19:18
_AnsHUMAN_ 3-Mar-11 19:18 

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.