Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: classes and namespaces Pin
Bob Ciora17-Feb-05 1:40
Bob Ciora17-Feb-05 1:40 
GeneralRe: classes and namespaces Pin
Alan Chambers17-Feb-05 1:50
Alan Chambers17-Feb-05 1:50 
GeneralRe: classes and namespaces Pin
digwizfox17-Feb-05 6:29
digwizfox17-Feb-05 6:29 
GeneralRe: classes and namespaces Pin
Mike Dimmick17-Feb-05 1:50
Mike Dimmick17-Feb-05 1:50 
GeneralRe: classes and namespaces Pin
Alan Chambers17-Feb-05 1:58
Alan Chambers17-Feb-05 1:58 
GeneralRe: classes and namespaces Pin
toxcct17-Feb-05 9:09
toxcct17-Feb-05 9:09 
GeneralRe: classes and namespaces Pin
«_Superman_»17-Feb-05 2:26
professional«_Superman_»17-Feb-05 2:26 
GeneralMenu handle from the floating menu bar Pin
Vaibhav Sanghavi17-Feb-05 1:02
Vaibhav Sanghavi17-Feb-05 1:02 
Hi All,

I am launching many applications from my application in background. Say I launched MS Word. Now, I want the handle of the launched application. I have the handle to the mainframe window of newly launched application. I am able to get the menu pointer using CWnd::GetMenu() from the mainframe pointer. But this works only with the applications like Notepad and Adobe Reader where menu is the intigral part of the mainframe. Applications like MS Word and MS Excel have seperate docking windows for menu. At this time I am not able to get the menu from mainframe.

For such applications what I do is I enumerate all child windows of the mainframe and call GetMenu function on all child windows but still none of them returns me the menu pointer.
I get the handle of the docking menu bar window (This handle is the same I can see using spy++). I call CWnd::FromHandle() funtion to get the CWnd pointer to that window and then call GetMenu() of using that CWnd pointer but it returns me NULL;

Any clues?

--------------
Vaibhav...
GeneralRe: Menu handle from the floating menu bar Pin
«_Superman_»17-Feb-05 4:20
professional«_Superman_»17-Feb-05 4:20 
GeneralRe: Menu handle from the floating menu bar Pin
Anonymous20-Feb-05 18:45
Anonymous20-Feb-05 18:45 
GeneralRe: Menu handle from the floating menu bar Pin
Vaibhav Sanghavi20-Feb-05 18:51
Vaibhav Sanghavi20-Feb-05 18:51 
GeneralRe: Menu handle from the floating menu bar Pin
Vaibhav Sanghavi20-Feb-05 18:56
Vaibhav Sanghavi20-Feb-05 18:56 
Generalautocad automation with VC++ Pin
Ajesh.P.S17-Feb-05 0:48
Ajesh.P.S17-Feb-05 0:48 
GeneralRe: autocad automation with VC++ Pin
Aza17-Feb-05 1:31
Aza17-Feb-05 1:31 
GeneralExcel COM from C++ Pin
MJWhiteman217-Feb-05 0:47
MJWhiteman217-Feb-05 0:47 
GeneralRe: Excel COM from C++ Pin
MJWhiteman217-Feb-05 3:45
MJWhiteman217-Feb-05 3:45 
QuestionHow to Find if a machine exists on LAN just by using Machine Name. Pin
RuchirD17-Feb-05 0:16
RuchirD17-Feb-05 0:16 
AnswerRe: How to Find if a machine exists on LAN just by using Machine Name. Pin
ThatsAlok17-Feb-05 2:25
ThatsAlok17-Feb-05 2:25 
Generalresource error Pin
rushing16-Feb-05 23:19
rushing16-Feb-05 23:19 
GeneralRe: resource error Pin
«_Superman_»17-Feb-05 2:28
professional«_Superman_»17-Feb-05 2:28 
GeneralRe: resource error Pin
rushing17-Feb-05 14:25
rushing17-Feb-05 14:25 
GeneralRe: resource error Pin
toxcct17-Feb-05 9:15
toxcct17-Feb-05 9:15 
GeneralRe: resource error Pin
rushing17-Feb-05 14:50
rushing17-Feb-05 14:50 
GeneralRe: resource error Pin
«_Superman_»17-Feb-05 20:26
professional«_Superman_»17-Feb-05 20:26 
GeneralMultilanguage in VS 98. Pin
nguyennp16-Feb-05 23:02
nguyennp16-Feb-05 23:02 

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.