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.