Micro Focus QTP (UFT) Forums

Full Version: QTP captures MFCMenubutton as winobject.Help Me to select menu's inside MFCMenubutton
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Friends,
I need your help in automating a control "MFCMenubotton".i am working in automating a VC++ developed application.when i try to capture a button( class belongs to MFCMenuButton). it capture it as winobject. The MFCMenubutton control has few menus's enabled when we click the button.
i want to choose those submenu's one by one for automating a function.

Could you please help me on choosing those submenu's

NOte: capturing the Submenu is fully(including sub items)are identified as a seperate window object.
Hi,
Take the properties of that sub-menu's and give the index for every sub-menu....

Code:
Browser("X").Page("Y").Winbutton("properties","index:=0")
''
''
''
''
Browser("X").Page("Y").Winbutton("properties","index:=04")