Update visualfc 0.82 so that it correctly lists all menu item IDS

Source: Internet
Author: User

Update visualfc 0.82 so that it correctly lists all menu item IDS

Visual FC is a very good wtl programming tool that can greatly reduce repetitive work and improve efficiency.

 

Wtl classwizard:Message every y command dialogresize DDX/DDV updateui dialogfont

Wtl Appwizard:Generic Appwizard for wtl project (for vs60/2003/2005/2008)

Winxgui classwizard:Event ready y command dialogresize DDX/DDV updateui dialogfont

Everyone can access http://code.google.com/p/visualfc/

 

How to get help?

Visualfc Bolg: http://blog.csdn.net/visualfc/

Recently, I am studying wtl GUI programming. With visualfc 0.82, I feel that the function is very practical.

However, it is found that, in the United States, visual FC 0.82 cannot list the menu item ID contained in the pop-up menu subpop-up menu.

For example, the menu items in the menu for sending bullets under the File menu in Word

Fortunately viualfc is an open source project, after sending a distress mail to the visualfc@gmail.com without a response, we can update it on our ownSource code.

The specific modification is as follows:

1. Add the following functions to classwizard \ vfc_core \ resources \ resmenu. cpp resmenu. h:

 

 
Void cresmenu: listmenuitem (catlarray <resmenuitem> & arraymenuitem) {for (size_t I = 0; I <m_vitems.getcount (); ++ I) {resmenuitem newitem = upload (I ); if (! Newitem. m_id.isempty () {arraymenuitem. add (newitem) ;}}for (size_t J = 0; j <m_submenus.getcount (); ++ J) {cresmenu submenu = m_submenus.getat (j); submenu. listmenuitem (arraymenuitem );}}

2. Modify the class codeparser in classwizard \ vfc_core \ codeparser. h.

 

 

Template <typename func> bool enumresmenuitem (const cresmenu * menu, func & Process) {cresmenu * pmenu = (cresmenu *) menu; catlarray <resmenuitem> arraymenuitem; pmenu-> listmenuitem (arraymenuitem); For (size_t I = 0; I <arraymenuitem. getcount (); ++ I) {process (& arraymenuitem. getat (I);} return true ;}

Then re-compile (I used vc2003 + wtl81) and replace the old one with the new vfc_core.dll.

 

Okay, it works normally.

I have uploaded the updated visualfc TO THE https://github.com/ywx/VisualFC and welcome criticism.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.