Click here to Skip to main content
15,925,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help: Creating toolbar at runtime Pin
Tomasz Sowinski12-Jul-01 1:55
Tomasz Sowinski12-Jul-01 1:55 
GeneralRe: help: Creating toolbar at runtime Pin
SP17-Jul-01 11:48
SP17-Jul-01 11:48 
GeneralCOM Port question Pin
11-Jul-01 12:59
suss11-Jul-01 12:59 
GeneralRe: COM Port question Pin
John Uhlenbrock12-Jul-01 6:20
John Uhlenbrock12-Jul-01 6:20 
GeneralCOM Port question Pin
Richard Cheng11-Jul-01 12:59
Richard Cheng11-Jul-01 12:59 
GeneralList Box. Pin
John Uhlenbrock11-Jul-01 12:37
John Uhlenbrock11-Jul-01 12:37 
GeneralRe: List Box. Pin
Tomasz Sowinski12-Jul-01 1:37
Tomasz Sowinski12-Jul-01 1:37 
GeneralApplication Menu Iteration Pin
Paul de Bazin11-Jul-01 12:19
Paul de Bazin11-Jul-01 12:19 
Hi all,

I'm looking at trying to write an application to iterate through all the menus in an application. Basically, this would form part of a test suite type of thing that I could build on for my applications. I also thought it would be useful as a kind of demo tool to automate actions and so wanted to make it as generic as possible (ie: just using Win32 commands to analyze the application).

I need to be able to iterate through a running application because the menus may be dynamically altered at startup (this happens in our apps), so iterating through the resources of the exe is not good enough.

This is all pretty easy for standard apps where the menu is not dockable, but GetMenu(HWND) doesn't appear to work on MS Apps as the menu is off sub windows etc...

So far, I've been unable to figure out a way to automatically recognize the menu for these apps. We've tried sending an ALT-F message to the windows in the app to get it to popup the File menu, but that only seems to work in the standard menu apps too.

Has anyone done this before?, or have any ideas on how to recognise a window with the main menu?

Paul

All round software nice guy....


GeneralRe: Application Menu Iteration Pin
Tomasz Sowinski12-Jul-01 1:51
Tomasz Sowinski12-Jul-01 1:51 
GeneralAdding CFileDialog as a Property Page Pin
Ganesh Agrawal11-Jul-01 12:07
Ganesh Agrawal11-Jul-01 12:07 
GeneralASCII to Float Conversion Pin
AaroC35711-Jul-01 10:21
AaroC35711-Jul-01 10:21 
GeneralRe: ASCII to Float Conversion Pin
Carlos Antollini11-Jul-01 10:59
Carlos Antollini11-Jul-01 10:59 
GeneralRe: ASCII to Float Conversion Pin
Michael Dunn11-Jul-01 19:53
sitebuilderMichael Dunn11-Jul-01 19:53 
GeneralC++ Certification question Pin
11-Jul-01 10:20
suss11-Jul-01 10:20 
GeneralRe: C++ Certification question Pin
Christian Graus11-Jul-01 13:07
protectorChristian Graus11-Jul-01 13:07 
GeneralRe: C++ Certification question Pin
11-Jul-01 15:33
suss11-Jul-01 15:33 
GeneralDialog Box sizing Pin
11-Jul-01 10:18
suss11-Jul-01 10:18 
GeneralRe: Dialog Box sizing Pin
Jake Palmer11-Jul-01 11:12
Jake Palmer11-Jul-01 11:12 
GeneralRe: Dialog Box sizing Pin
Michael Dunn11-Jul-01 19:56
sitebuilderMichael Dunn11-Jul-01 19:56 
QuestionPossible to use OCX from within a DLL??? Pin
DVryce11-Jul-01 9:48
DVryce11-Jul-01 9:48 
AnswerRe: Possible to use OCX from within a DLL??? Pin
Carlos Antollini11-Jul-01 10:19
Carlos Antollini11-Jul-01 10:19 
GeneralRe: Possible to use OCX from within a DLL??? Pin
DVryce12-Jul-01 2:49
DVryce12-Jul-01 2:49 
GeneralRe: Possible to use OCX from within a DLL??? Pin
DVryce12-Jul-01 4:11
DVryce12-Jul-01 4:11 
GeneralPl help:Windows Enumeration Pin
sriram_mr11-Jul-01 9:46
sriram_mr11-Jul-01 9:46 
GeneralBooks about MFC Pin
11-Jul-01 9:40
suss11-Jul-01 9:40 

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.