mi32/iconid.h File Reference

<mi32/iconid.h> MGUI::ICONID enumerations More...

This graph shows which files directly or indirectly include this file:

mi32/micon.hmi32/xdefns.hmi32/mgd2.hmgui/imagelst.hrvc/style.hgre/3dgmelem.hmgui/gridstyl.hmi32/mg2mem24.hmi32/grlayout.hmi32/mg2x.hmi32/grtree.hmi32/matte.hmi32/mg2binary.hmi32/mg2hdc.hmi32/mg2mem16.hmi32/mg2mem32.hmi32/mg2mem8g.hmi32/mg2simpl.hmi32/migrid.hmi32/mxgraph.hmi32/winssamp.hrvc/formedst.hmgui/tree.hrvc/controls.hgre/viewscript.hmgui/command.hmgui/base.hmgui/cursorh.hmgui/tooltip.hmi32/thumbnlv.hmi32/mgui.hmi32/mxform.hmi32/midialog.hmi32/hotkey.hmi32/mstatusw.hmi32/mxgrlist.hmi32/mxtools.hmi32/rgnman.hmi32/unitmenu.hrvc/rasterop.hgre/viewable.hmgui/shell.hmgui/dlgbase.hmgui/layout.hmgui/menu.hmgui/timer.hmie/uibase.hmie/uimain.hmi32/cformdlg.h

Go to the source code of this file.

Defines

#define INC_MI32_ICONID_H

Enumerations

enum  ICONID


Detailed Description

<mi32/iconid.h> MGUI::ICONID enumerations

Definition in file iconid.h.


Define Documentation

#define INC_MI32_ICONID_H

Definition at line 198 of file iconid.h.


Enumeration Type Documentation

enum ICONID

Icon ID enumeration.

To add a new icon:

1. If the icon does not exist in 'icons.ref', add using the 'dispicon' utility, or have the graphic designer do so. Note the icon group/name for later use.

2. Use 'dispicon' to export the icon from 'icons.ref' as an appropriately named .ico file. Choose a name based on the planned Icon ID, basically using the same name in lowercase without the IDI_ prefix. Copy the ico file(s) to k: folder.

3. Check out the miwinres.h file. Add IDI_ Entries for the icon. Be sure to also modify _APS_NEXT_RESOURCE_VALUE at the end of the file. It should always be 1 greater than the last IDI value.

4. Checkout the makefile.n and miwinres.rc files in the 'miwinres' DLL project. Note, there are two places to add the file in makefile.n: the list of ico files to depend on, and the RCS rules to copy them from fileserver. In the miwinres.rc file, add a line for each ICON to the end of the Icons section. Make the project and check in the following files. miwinres.h, miwinres.rc, makefile.n. Be sure to schedule miwinres.

5. Edit the ICONIDTABLE in <mi32/iconid.h> to add the new icon. If the icon is a new size for an existing icon change the ICONIDENTRY to ICONIDENTRY2 or ICONENTRY3 as appropriate. Otherwise add a new ICONIDENTRY containing the resource name (without the IDI_ prefix), the icon group and icon name from 'icons.ref'. Keep items in alphabetical order by resource name.

6. The X version of the translation is defined in 'micon.c'. This module will NOT rebuild automatically after edits to the ICONIDTABLE, so if immediate use of the icon is desired in an X application you will need to 'touch' the 'micon.c' module before starting a library build.

Definition at line 234 of file iconid.h.


Generated on Thu Apr 26 04:46:01 2007 for TNTsdk by  doxygen 1.5.2