wButtonText returns the same name for each item (CMFCMenuBar)
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2013
12:51 AM
06-07-2013
12:51 AM
wButtonText returns the same name for each item (CMFCMenuBar)
Hi,
I'm going to write a test for an MDI MFC application. Here I encountered the following problem:
The wButtonText property of an CMFCMenuBar always returns the same value regardless of which index I use.
The ClickItem method also does not work. The following error occurs:
The control item '&Ansicht' not found.
Total number of items: 3.
Items: '&Datei', '&Datei', '&Datei'.
Sorry for my bad English.
Stefan
I'm going to write a test for an MDI MFC application. Here I encountered the following problem:
The wButtonText property of an CMFCMenuBar always returns the same value regardless of which index I use.
The ClickItem method also does not work. The following error occurs:
The control item '&Ansicht' not found.
Total number of items: 3.
Items: '&Datei', '&Datei', '&Datei'.
Sorry for my bad English.
Stefan
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2013
05:58 PM
06-20-2013
05:58 PM
Hi Stefan,
Don't use & in the item names:
obj.ClickItem("Ansicht")
---------
Tanya Yatskovskaya
SmartBear Community and Education Manager
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2014
04:56 AM
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2014
05:53 PM
08-25-2014
05:53 PM
Hi Mahesh,
Did your compile the app with debug information according to the "MFC Menu Button Support" article?
If you did, but the issue persists, I suggest that you contact our Support team to investigate this behavior in detail. If you provided a simple app where the issue is reproduced on your computer, that would be great. Thanks.
Did your compile the app with debug information according to the "MFC Menu Button Support" article?
If you did, but the issue persists, I suggest that you contact our Support team to investigate this behavior in detail. If you provided a simple app where the issue is reproduced on your computer, that would be great. Thanks.
---------
Tanya Yatskovskaya
SmartBear Community and Education Manager
Tanya Yatskovskaya
SmartBear Community and Education Manager
