Micro Focus QTP (UFT) Forums
QTP captures MFCMenubutton as winobject.Help Me to select menu's inside MFCMenubutton - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: QTP captures MFCMenubutton as winobject.Help Me to select menu's inside MFCMenubutton (/Thread-QTP-captures-MFCMenubutton-as-winobject-Help-Me-to-select-menu-s-inside-MFCMenubutton)



QTP captures MFCMenubutton as winobject.Help Me to select menu's inside MFCMenubutton - surestud - 04-08-2015

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.


RE: QTP captures MFCMenubutton as winobject.Help Me to select menu's inside MFCMenubutton - Naresh - 04-10-2015

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")