You can add your own components (buttons, menu items, sliders etc.) to the project, and specify the action to be performed for each item. To do so follow these instructions:
Customizing buttons
When the project is open, click on the "Resources" tab.
Open the "Toolbar" node and double-click on "IDR_MAINFRAME" to open the toolbar. Each button is the same size (15*16 pixels).
Either edit an existing button or add a new button by double-clicking the empty button (usually the right one). To choose an ID for your new button (or edit an existing button's ID) simply double click the desired button and choose an ID in the Toolbar Button Properties dialog box, under "ID".
You can set a caption for your button in the Toolbar Button Properties dialog box, under "Prompt".
Edit the action to be performed by opening the Class Wizard (shortcut: ctrl+w). Make sure you open the "Message Maps" tab. In the "Object IDs" box choose the ID you previously chose for your button. In the "Class Name" box choose the name of the class that will handle the button click (usually you should choose CMeshMakerView). Choose the command you want in the "Messages" box (preferably "COMMAND" for a single click on the button). Then click on "Add Function", where you'll be asked for a function name. After that, you can click on "Edit Code" and you'll be brought to the beginning of your new function, where you can fill in the code yourself.
Customizing the menu bar
When the project is open, click on the "Resources" tab.
Open the "Menu" node and double-click on "IDR_MAINFRAME" to open the menu bar.
Either edit an existing menu item, or add a new menu item. When adding a new menu item you will be able to choose your own ID for that menu item (in the "Menu Item Properties" dialog box).
Follow the same instructions as the section e. of the "Customizing buttons" section in order to define the code to be performed when a menu item has been selected.
MeshMaker 5.2 Manual
This software library was written by Roni Raab, ronir@cs.technion.ac.il.
Last updated on May 2003.
This software is for academic and research use only.