Click here to Skip to main content
15,912,457 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: GUI Pin
Christian Graus9-Nov-05 13:43
protectorChristian Graus9-Nov-05 13:43 
GeneralRe: GUI Pin
BlitzPackage9-Nov-05 14:38
BlitzPackage9-Nov-05 14:38 
GeneralRe: GUI Pin
Christian Graus9-Nov-05 14:51
protectorChristian Graus9-Nov-05 14:51 
GeneralRe: GUI Pin
BlitzPackage9-Nov-05 14:58
BlitzPackage9-Nov-05 14:58 
Questioninternet Get Filetime Or Filesize. Pin
oversight_19749-Nov-05 13:21
oversight_19749-Nov-05 13:21 
QuestionCDC memory leak Pin
_Tom_9-Nov-05 11:49
_Tom_9-Nov-05 11:49 
AnswerRe: CDC memory leak Pin
Christian Graus9-Nov-05 13:45
protectorChristian Graus9-Nov-05 13:45 
QuestionExtract MS Word Menu Bar layout Pin
Ishan Banerjee9-Nov-05 11:25
Ishan Banerjee9-Nov-05 11:25 
Hi,

I have been attempting to extract the "Menu Bar" layout of MS Office Apps, say MS Word. I would appreciate any help. Here is my problem description.

MS Office "Menu Bar" is not accessible using the normal Windows HWND handles. However, they expose the IAccessible interface, which I am trying to use. The handle to the top level "Menu Bar" is first obtained, call it h. The "AccessibleObjectFromWindow()" function is then used with the handle h, in an attempt to get an IDispatch pointer to the menu. Here is the code snip.

IDispatch** ppMenu = NULL;
DWORD OBJID_NATIVEOM = ((LONG)0xFFFFFFF0);
int r = AccessibleObjectFromWindow(h, OBJID_NATIVEOM, IID_IDispatch, (void**)ppMenu);
if (r == S_OK) {printf("S_OK\n");}
if (r == E_INVALIDARG) {printf("E_INVALIDARG\n");}
if (r == E_NOINTERFACE) {printf("E_NOINTERFACE\n"); }

However, the returned value is always E_INVALIDARG. The handle 'h' has been obtianed by (recursively) enumeraing all windows (and child windows) of the MS Word top level window and selecting the one with name="Menu Bar" and class="MsoCommandBar".

I believe, the id OBJID_NATIVEOM is required for Office apps, since they implement their own menu.

If someone has any thoughts or experience with this type of situation, I would really apreciate their help.

Regards,
Ishan.
Questionopengl drawtext Pin
lrola9-Nov-05 9:12
lrola9-Nov-05 9:12 
AnswerRe: opengl drawtext Pin
Mathieu Dijkstra9-Nov-05 9:53
Mathieu Dijkstra9-Nov-05 9:53 
QuestionSaving exceptions Pin
Federico Milano9-Nov-05 9:07
Federico Milano9-Nov-05 9:07 
Questionproblem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 8:59
Mathieu Dijkstra9-Nov-05 8:59 
QuestionRe: problem with variable in 2 diferent dialog boxes Pin
David Crow9-Nov-05 10:11
David Crow9-Nov-05 10:11 
AnswerRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 10:24
Mathieu Dijkstra9-Nov-05 10:24 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
David Crow9-Nov-05 10:34
David Crow9-Nov-05 10:34 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 11:07
Mathieu Dijkstra9-Nov-05 11:07 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 22:57
Mathieu Dijkstra9-Nov-05 22:57 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
David Crow10-Nov-05 2:36
David Crow10-Nov-05 2:36 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra10-Nov-05 7:17
Mathieu Dijkstra10-Nov-05 7:17 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
David Crow10-Nov-05 8:20
David Crow10-Nov-05 8:20 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra10-Nov-05 8:31
Mathieu Dijkstra10-Nov-05 8:31 
QuestionFast files Pin
hint_549-Nov-05 7:42
hint_549-Nov-05 7:42 
GeneralRe: Fast files Pin
cgreathouse9-Nov-05 8:12
cgreathouse9-Nov-05 8:12 
GeneralRe: Fast files Pin
hint_549-Nov-05 9:06
hint_549-Nov-05 9:06 
GeneralRe: Fast files Pin
cgreathouse9-Nov-05 9:36
cgreathouse9-Nov-05 9:36 

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.