MENUHELP.C

Go to the documentation of this file.
00001 /* --
00002 OpenFX - Modelling, Animation and Rendering Package
00003 -- */
00004 
00005 
00006 /* file menuhelp.c */
00007 
00008 // This file contains the table that maps the menu commands to their
00009 // help strings, it contains the function that loads the table of data
00010 // with the strings so that they are stored in RAM - this is probably
00011 // not the best way to do it as reading from the resources file is very
00012 // fast now - but in the old days Win 3.0 it was the best !!!!
00013 
00014 #define MODULE_MENUHELP 1
00015 
00016 #include "design.h"
00017 
00018 typedef struct tagMENUHELPDATA{
00019   int iCode,sCode;
00020   char *str;
00021 } MENUHELPDATA;
00022 
00023 static MENUHELPDATA MenuHelpData[NMENUHELPDATA]={
00024   0xFFFF,                            0xFFFF,                            NULL,
00025   IDM_FILE_NEW,                      IDH_FILE_NEW,                      NULL,
00026   IDM_FILE_LOAD_MODEL,               IDH_FILE_LOAD_MODEL,               NULL,
00027   IDM_FILE_LOAD_ABSOLUTE,            IDH_FILE_LOAD_ABSOLUTE,            NULL,
00028   IDM_FILE_LOAD_RELATIVE,            IDH_FILE_LOAD_RELATIVE,            NULL,
00029   IDM_FILE_LOAD_COORDS,              IDH_FILE_LOAD_COORDS,              NULL,
00030   IDM_FILE_LOAD_PATH,                IDH_FILE_LOAD_PATH,                NULL,
00031   IDM_FILE_SAVE,                     IDH_FILE_SAVE,                     NULL,
00032   IDM_FILE_SAVE_ALL,                 IDH_FILE_SAVE_ALL,                 NULL,
00033   IDM_FILE_SAVE_OBJECT,              IDH_FILE_SAVE_OBJECT,              NULL,
00034   IDM_FILE_SAVE_NAMED,               IDH_FILE_SAVE_NAMED,               NULL,
00035   IDM_FILE_SAVE_LETTERS,             IDH_FILE_SAVE_LETTERS,             NULL,
00036   IDM_FILE_SAVE_PATH,                IDH_FILE_SAVE_PATH,                NULL,
00037   IDM_FILE_IMPORT_DXF,               IDH_FILE_IMPORT_DXF,               NULL,
00038   IDM_FILE_IMPORT_3DS,               IDH_FILE_IMPORT_3DS,               NULL,
00039   IDM_FILE_IMPORT_POLYGON,           IDH_FILE_IMPORT_POLYGON,           NULL,
00040   IDM_FILE_IMPORT_SLELETON,          IDH_FILE_IMPORT_SLELETON,          NULL,
00041   IDM_FILE_IMPORT_ATM,               IDH_FILE_IMPORT_ATM,               NULL,
00042   IDM_FILE_IMPORT_FONT,              IDH_FILE_IMPORT_FONT,              NULL,
00043   IDM_FILE_IMPORT_TDD,               IDH_FILE_IMPORT_TDD,               NULL,
00044   IDM_FILE_IMPORT_SCN,               IDH_FILE_IMPORT_SCN,               NULL,
00045   IDM_FILE_EXPORT_DXF,               IDH_FILE_EXPORT_DXF,               NULL,
00046   IDM_FILE_EXPORT_3DS,               IDH_FILE_EXPORT_3DS,               NULL,
00047   IDM_FILE_IMPORT_STL,               IDH_FILE_IMPORT_STL,               NULL,
00048   IDM_FILE_EXPORT_STL,               IDH_FILE_EXPORT_STL,               NULL,
00049   IDM_FILE_EXPORT_VRML,              IDH_FILE_EXPORT_VRML,              NULL,
00050   IDM_FILE_BOUNDINGBOX_AUTO,         IDH_FILE_BOUNDINGBOX_AUTO,         NULL,
00051   IDM_FILE_BOUNDINGBOX_CLEAR,        IDH_FILE_BOUNDINGBOX_CLEAR,        NULL,
00052   IDM_FILE_BOUNDINGBOX_MAKE,         IDH_FILE_BOUNDINGBOX_MAKE,         NULL,
00053   IDM_FILE_BOUNDINGBOX_UNMAKE,       IDH_FILE_BOUNDINGBOX_UNMAKE,       NULL,
00054   IDM_FILE_BOUNDINGBOX_TOSK,         IDH_FILE_BOUNDINGBOX_TOSK,         NULL,
00055   IDM_FILE_TRACEOUTLINE,             IDH_FILE_TRACEOUTLINE,             NULL,
00056   IDM_FILE_PAINTMAP,                 IDH_FILE_PAINTMAP,                 NULL,
00057   IDM_FILE_VIEWER,                   IDH_FILE_VIEWER,                   NULL,
00058   IDM_FILE_HEIGHT,                   IDH_FILE_HEIGHT,                   NULL,
00059   IDM_FILE_EXTERNAL,                 IDH_FILE_EXTERNAL,                 NULL,
00060   IDM_FILE_ANIMATOR,                 IDH_FILE_ANIMATOR,                 NULL,
00061   IDM_FILE_UPDATE_ANIMATOR,          IDH_FILE_UPDATEANIMATOR,           NULL,
00062   IDM_FILE_BEZIER,                   IDH_FILE_BEZIER,                   NULL,
00063   IDM_FILE_PRINT,                    IDH_FILE_PRINT,                    NULL,
00064   IDM_FILE_PREFERENCES,              IDH_FILE_PREFERENCES,              NULL,
00065   IDM_VIEW_RENDERNOW,                IDH_VIEW_RENDERNOW,                NULL,
00066   IDM_FILE_EXIT,                     IDH_FILE_EXIT,                     NULL,
00067   IDM_EDIT_UNDO,                     IDH_EDIT_UNDO,                     NULL,
00068   IDM_EDIT_ERASE_VERTICES,           IDH_EDIT_ERASE_VERTICES,           NULL,
00069   IDM_EDIT_ERASE_EDGES,              IDH_EDIT_ERASE_EDGES,              NULL,
00070   IDM_EDIT_ERASE_INDICATEDEDGE,      IDH_EDIT_ERASE_INDICATEDEDGE,      NULL,
00071   IDM_EDIT_ERASE_INDICATEDVERTEX,    IDH_EDIT_ERASE_INDICATEDVERTEX,    NULL,
00072   IDM_EDIT_ERASE_MAP,                IDH_EDIT_ERASE_MAP,                NULL,
00073   IDM_EDIT_ERASE_HIERARCHY,          IDH_EDIT_ERASE_HIERARCHY,          NULL,
00074   IDM_EDIT_ERASE_VERTEXMAPPING,      IDH_EDIT_ERASE_VERTEXMAPPING,      NULL,
00075   IDM_EDIT_ERASE_ALL,                IDH_EDIT_ERASE_ALL,                NULL,
00076   IDM_EDIT_SELECTALL,                IDH_EDIT_SELECTALL,                NULL,
00077   IDM_EDIT_DESELECTALL,              IDH_EDIT_DESELECTALL,              NULL,
00078   IDM_EDIT_SWAPSELECT,               IDH_EDIT_SWAPSELECT,               NULL,
00079   IDM_EDIT_SELECTCONNECT,            IDH_EDIT_SELECTCONNECT,            NULL,
00080   IDM_EDIT_DESELECTCONNECT,          IDH_EDIT_DESELECTCONNECT,          NULL,
00081   IDM_EDIT_SELECTMAPPED,             IDH_EDIT_SELECTMAPPED,             NULL,
00082   IDM_EDIT_DESELECTMAPPED,           IDH_EDIT_DESELECTMAPPED,           NULL,
00083   IDM_EDIT_SELECTBY_BEZIER,          IDH_EDIT_SELECTBY_BEZIER,          NULL,
00084   IDM_EDIT_SELECTBY_INVIEW,          IDH_EDIT_SELECTBY_INVIEW,          NULL,
00085   IDM_EDIT_SELECTBY_OUTVIEW,         IDH_EDIT_SELECTBY_OUTVIEW,         NULL,
00086   IDM_EDIT_SELECTBY_MAP,             IDH_EDIT_SELECTBY_MAP,             NULL,
00087   IDM_EDIT_SELECTBY_COLOUR,          IDH_EDIT_SELECTBY_COLOUR,          NULL,
00088   IDM_EDIT_SELECTBY_SHADER,          IDH_EDIT_SELECTBY_SHADER,          NULL,
00089   IDM_EDIT_DESELECT_EVERY,           IDH_EDIT_DESELECT_EVERY,           NULL,
00090   IDM_TOOLS_SELECTOR,                IDH_TOOLS_SELECTOR,                NULL,
00091   IDM_TOOLS_DESELECTOR,              IDH_TOOLS_DESELECTOR,              NULL,
00092   IDM_TOOLS_PLOTTER,                 IDH_TOOLS_PLOTTER,                 NULL,
00093   IDM_TOOLS_PLOT3D,                  IDH_TOOLS_PLOT3D,                  NULL,
00094   IDM_TOOLS_BUILDER,                 IDH_TOOLS_BUILDER,                 NULL,
00095   IDM_TOOLS_GRABBER,                 IDH_TOOLS_GRABBER,                 NULL,
00096   IDM_TOOLS_EXPANDER,                IDH_TOOLS_EXPANDER,                NULL,
00097   IDM_TOOLS_ROTATOR,                 IDH_TOOLS_ROTATOR,                 NULL,
00098   IDM_TOOLS_MAGNET_ATTRACT,          IDH_TOOLS_MAGNET_ATTRACT,          NULL,
00099   IDM_TOOLS_MAGNET_REPEL,            IDH_TOOLS_MAGNET_REPEL,            NULL,
00100   IDM_TOOLS_PRIMITIVES,              IDH_TOOLS_PRIMITIVES,              NULL,
00101   IDM_TOOLS_SHAPER,                  IDH_TOOLS_SHAPER,                  NULL,
00102   IDM_SNAP_CLOSEST,                  IDH_SNAP_CLOSEST,                  NULL,
00103   IDM_SNAP_CLOSESELECT,              IDH_SNAP_CLOSESELECT,              NULL,
00104   IDM_SNAP_MIDPOINT,                 IDH_SNAP_MIDPOINT,                 NULL,
00105   IDM_SNAP_MIDSELECT,                IDH_SNAP_MIDSELECT,                NULL,
00106   IDM_SNAP_CENTROID,                 IDH_SNAP_CENTROID,                 NULL,
00107   IDM_SNAP_HPLANE,                   IDH_SNAP_HPLANE,                   NULL,
00108   IDM_SNAP_VPLANERL,                 IDH_SNAP_VPLANERL,                 NULL,
00109   IDM_SNAP_VPLANEFB,                 IDH_SNAP_VPLANEFB,                 NULL,
00110   IDM_SNAP_STORE,                    IDH_SNAP_STORE,                    NULL,
00111   IDM_SNAP_TOSTORED,                 IDH_SNAP_TOSTORED,                 NULL,
00112   IDM_SNAP_TOCOORD,                  IDH_SNAP_TOCOORD,                  NULL,
00113   IDM_SNAP_INCREMENT,                IDH_SNAP_INCREMENT,                NULL,
00114   IDM_ACTIONS_ROTATE_CLOCKWISE,      IDH_ACTIONS_ROTATE_CLOCKWISE,      NULL,
00115   IDM_ACTIONS_ROTATE_ANTICLOCKWISE,  IDH_ACTIONS_ROTATE_ANTICLOCKWISE,  NULL,
00116   IDM_ACTIONS_WELD,                  IDH_ACTIONS_WELD,                  NULL,
00117   IDM_ACTIONS_FILL,                  IDH_ACTIONS_FILL,                  NULL,
00118   IDM_ACTIONS_FACET,                 IDH_ACTIONS_FACET,                 NULL,
00119   IDM_ACTIONS_SPIN,                  IDH_ACTIONS_SPIN,                  NULL,
00120   IDM_ACTIONS_EXPAND,                IDH_ACTIONS_EXPAND,                NULL,
00121   IDM_ACTIONS_EFFECTS_PLAN,          IDH_ACTIONS_EFFECTS_PLAN,          NULL,
00122   IDM_ACTIONS_EFFECTS_EXPLODE,       IDH_ACTIONS_EFFECTS_EXPLODE,       NULL,
00123   IDM_ACTIONS_EFFECTS_SHATTER,       IDH_ACTIONS_EFFECTS_SHATTER,       NULL,
00124   IDM_ACTIONS_EFFECTS_FULLINTERSECT, IDH_ACTIONS_EFFECTS_FULLINTERSECT, NULL,
00125   IDM_ACTIONS_EFFECTS_PARTINTERSECT, IDH_ACTIONS_EFFECTS_PARTINTERSECT, NULL,
00126   IDM_TOOLS_EXTRUDE,                 IDH_TOOLS_EXTRUDE,                 NULL,
00127   IDM_ACTIONS_EXTRUDE_ALONG,         IDH_ACTIONS_EXTRUDE_ALONG,         NULL,
00128   IDM_ACTIONS_EXTRUDE_BEVEL,         IDH_ACTIONS_EXTRUDE_BEVEL,         NULL,
00129   IDM_ACTIONS_EXTRUDE_ROUND,         IDH_ACTIONS_EXTRUDE_ROUND,         NULL,
00130   IDM_ACTIONS_DUPLICATE_MAKE,        IDH_ACTIONS_DUPLICATE_MAKE,        NULL,
00131   IDM_ACTIONS_DUPLICATE_CONNECT,     IDH_ACTIONS_DUPLICATE_CONNECT,     NULL,
00132   IDM_ACTIONS_DUPLICATE_MULTI,       IDH_ACTIONS_DUPLICATE_MULTI,       NULL,
00133   IDM_ACTIONS_SUBDIVIDE,             IDH_ACTIONS_SUBDIVIDE,             NULL,
00134   IDM_ACTIONS_SMOOTH,                IDH_ACTIONS_SMOOTH,                NULL,
00135   IDM_ACTIONS_FLIP,                  IDH_ACTIONS_FLIP,                  NULL,
00136   IDM_ACTIONS_JOIN,                  IDH_ACTIONS_JOIN,                  NULL,
00137   IDM_ACTIONS_BEZIER,                IDH_ACTIONS_BEZIER,                NULL,
00138   IDM_ACTIONS_BOOLEAN,               IDH_ACTIONS_BOOLEAN,               NULL,
00139   IDM_ACTIONS_TWIST,                 IDH_ACTIONS_TWIST,                 NULL,
00140   IDM_ACTIONS_ORIENTATE,             IDH_ACTIONS_ORIENTATE,             NULL,
00141   IDM_ACTIONS_REVERSE,               IDH_ACTIONS_REVERSE,               NULL,
00142   IDM_ACTIONS_JOINS,                 IDH_ACTIONS_JOINS,                 NULL,
00143   IDM_TOOLS_ADDVERTEX,               IDH_TOOLS_ADDVERTEX,               NULL,
00144   IDM_TOOLS_BUILDFACET,              IDH_TOOLS_BUILDFACET,              NULL,
00145   IDM_ACTIONS_SPECIAL_3DPLOT,        IDH_ACTIONS_SPECIAL_3DPLOT,        NULL,
00146   IDM_ACTIONS_SPECIAL_HELIX,         IDH_ACTIONS_SPECIAL_HELIX,         NULL,
00147   IDM_ACTIONS_SPECIAL_SPIRAL,        IDH_ACTIONS_SPECIAL_SPIRAL,        NULL,
00148   IDM_ACTIONS_SPECIAL_3DSPIRAL,      IDH_ACTIONS_SPECIAL_3DSPIRAL,      NULL,
00149   IDM_ACTIONS_SPECIAL_LINE,          IDH_ACTIONS_SPECIAL_LINE,          NULL,
00150   IDM_ACTIONS_SPECIAL_BUTTERFLY,     IDH_ACTIONS_SPECIAL_BUTTERFLY,     NULL,
00151   IDM_ACTIONS_BUILD,                 IDH_ACTIONS_BUILD,                 NULL,
00152   IDM_ACTIONS_MOVE,                  IDH_ACTIONS_MOVE,                  NULL,
00153   IDM_ACTIONS_TURNINDICATEDEDGE,     IDH_ACTIONS_TURNINDICATEDEDGE,     NULL,
00154   IDM_ACTIONS_SPLITALONG,            IDH_ACTIONS_SPLITALONG,            NULL,
00155   IDM_ACTIONS_GROW,                  IDH_ACTIONS_GROW,                  NULL,
00156   IDM_ATTRIBUTES_FACE,               IDH_ATTRIBUTES_FACE,               NULL,
00157   IDM_ATTRIBUTES_DEFAULT,            IDH_ATTRIBUTES_DEFAULT,            NULL,
00158   IDM_ATTRIBUTES_MAP,                IDH_ATTRIBUTES_MAP,                NULL,
00159   IDM_ATTRIBUTES_NEWMAP,             IDH_ATTRIBUTES_NEWMAP,             NULL,
00160   IDM_ATTRIBUTES_PURGE,              IDH_ATTRIBUTES_PURGE,              NULL,
00161   IDM_ATTRIBUTES_VECTOR,             IDH_ATTRIBUTES_VECTOR,             NULL,
00162   IDM_ATTRIBUTES_EMBEDALLMAPS,       IDH_ATTRIBUTES_EMBEDALLMAPS,       NULL,
00163   IDM_ATTRIBUTES_EXPORTALLMAPS,      IDH_ATTRIBUTES_EXPORTALLMAPS,      NULL,
00164   IDM_ATTRIBUTES_UNLOADALLMAPS,      IDH_ATTRIBUTES_UNLOADALLMAPS,      NULL,
00165   IDM_ATTRIBUTES_MAPAXES,            IDH_ATTRIBUTES_MAPAXES,            NULL,
00166   IDM_MATERIAL_EDIT,                 IDH_MATERIAL_EDIT,                 NULL,
00167   IDM_ATTRIBUTES_SHADER_NEW,         IDH_ATTRIBUTES_SHADER_NEW,         NULL,
00168   IDM_ATTRIBUTES_SHADER_DELETE,      IDH_ATTRIBUTES_SHADER_DELETE,      NULL,
00169   IDM_ATTRIBUTES_EXTERNALSHADER,     IDH_ATTRIBUTES_EXTERNALSHADER,     NULL,
00170   IDM_ATTRIBUTES_SHADER_PREVIEW,     IDH_ATTRIBUTES_SHADER_PREVIEW,     NULL,
00171   IDM_ATTRIBUTES_SHADER_PURGE,       IDH_ATTRIBUTES_SHADER_PURGE,       NULL,
00172   IDM_ATTRIBUTES_CENTREPOINT,        IDH_ATTRIBUTES_CENTREPOINT,        NULL,
00173   IDM_ATTRIBUTES_FOLLOWPOINT,        IDH_ATTRIBUTES_FOLLOWPOINT,        NULL,
00174   IDM_ATTRIBUTES_SHADOW,             IDH_ATTRIBUTES_SHADOW,             NULL,
00175   IDM_ATTRIBUTES_MAPFROMMAP,         IDH_ATTRIBUTES_MAPFROMMAP,         NULL,
00176   IDM_ATTRIBUTES_WRAPMAP,            IDH_ATTRIBUTES_WRAPMAP,            NULL,
00177   IDM_ATTRIBUTES_MAPONPATH,          IDH_ATTRIBUTES_MAPONPATH,          NULL,
00178   IDM_ATTRIBUTES_SETVERTEXMAPPING,   IDH_ATTRIBUTES_SETVERTEXMAPPING,   NULL,
00179   IDM_ATTRIBUTES_MIRROR,             IDH_ATTRIBUTES_MIRROR,             NULL,
00180   IDM_ATTRIBUTES_REFINDEX,           IDH_ATTRIBUTES_REFINDEX,           NULL,
00181   IDM_ATTRIBUTES_EXPORTMATERIALS,    IDH_ATTRIBUTES_EXPORTMATERIALS,    NULL,
00182   IDM_ATTRIBUTES_IMPORTMATERIALS,    IDH_ATTRIBUTES_IMPORTMATERIALS,    NULL,
00183   IDM_HIERARCHY_NAME,                IDH_HIERARCHY_NAME,                NULL,
00184   IDM_HIERARCHY_POSE,                IDH_HIERARCHY_POSE,                NULL,
00185   IDM_HIERARCHY_BUILD,               IDH_HIERARCHY_BUILD,               NULL,
00186   IDM_HIERARCHY_STRETCH,             IDH_HIERARCHY_STRETCH,             NULL,
00187   IDM_HIERARCHY_TWIST,               IDH_HIERARCHY_TWIST,               NULL,
00188   IDM_HIERARCHY_REMOVE,              IDH_HIERARCHY_REMOVE,              NULL,
00189   IDM_HIERARCHY_INSERT,              IDH_HIERARCHY_INSERT,              NULL,
00190   IDM_HIERARCHY_ATTACH,              IDH_HIERARCHY_ATTACH,              NULL,
00191   IDM_HIERARCHY_SELECT,              IDH_HIERARCHY_SELECT,              NULL,
00192   IDM_HIERARCHY_DUPLICATE,           IDH_HIERARCHY_DUPLICATE,           NULL,
00193   IDM_HIERARCHY_RUBBERBONES,         IDH_HIERARCHY_RUBBERBONES,         NULL,
00194   IDM_HIERARCHY_RUBBERMODELCONST,    IDH_HIERARCHY_RUBBERMODELCONST,    NULL,
00195   IDM_HIERARCHY_RUBBERMODELVARI,     IDH_HIERARCHY_RUBBERMODELVARI,     NULL,
00196   IDM_HIERARCHY_RENAME,              IDH_HIERARCHY_RENAME,              NULL,
00197   IDM_HIERARCHY_RESETWEIGHT,         IDH_HIERARCHY_RESETWEIGHT,         NULL,
00198   IDM_HIERARCHY_AUTOASSIGN,          IDH_HIERARCHY_AUTOASSIGN,          NULL,
00199   IDM_VIEW_HIDE,                     IDH_VIEW_HIDE,                     NULL,
00200   IDM_VIEW_REVEAL,                   IDH_VIEW_REVEAL,                   NULL,
00201   IDM_VIEW_DRAWING_HIDEEDGES,        IDH_VIEW_DRAWING_HIDEEDGES,        NULL,
00202   IDM_VIEW_DRAWING_HIDEJOINS,        IDH_VIEW_DRAWING_HIDEJOINS,        NULL,
00203   IDM_VIEW_RENDER,                   IDH_VIEW_RENDER,                   NULL,
00204   IDM_VIEW_SHOW,                     IDH_VIEW_SHOW,                     NULL,
00205   IDM_VIEW_WIREFRAME,                IDH_VIEW_WIREFRAME,                NULL,
00206   IDM_VIEW_HIDDENLINE,               IDH_VIEW_HIDDENLINE,               NULL,
00207   IDM_VIEW_GRID,                     IDH_VIEW_GRID,                     NULL,
00208   IDM_VIEW_DRAW_GRID,                IDH_VIEW_DRAW_GRID,                NULL,
00209   IDM_VIEW_DEFINEGRID,               IDH_VIEW_DEFINEGRID,               NULL,
00210   IDM_ZOOM_IN,                       IDH_ZOOM_IN,                       NULL,
00211   IDM_ZOOM_OUT,                      IDH_ZOOM_OUT,                      NULL,
00212   IDM_ZOOM_CENTRE,                   IDH_ZOOM_CENTRE,                   NULL,
00213   IDM_VIEW_RESTORE,                  IDH_VIEW_RESTORE,                  NULL,
00214   IDM_VIEW_FULL,                     IDH_VIEW_FULL,                     NULL,
00215   IDM_VIEW_SCREENCOLOURS,            IDH_VIEW_SCREENCOLOURS,            NULL,
00216   IDM_VIEW_FEEDBACK_CURSOR,          IDH_VIEW_FEEDBACK_CURSOR,          NULL,
00217   IDM_WINDOW_SWITCHWINDOWS,          IDH_WINDOW_SWITCHWINDOWS,          NULL,
00218   IDM_VIEW_SWAPVIEWPOINT,            IDH_VIEW_SWAPVIEWPOINT,            NULL,
00219   IDM_WINDOW_RESET,                  IDH_WINDOW_RESET,                  NULL,
00220   IDM_WINDOW_TOOLLEFT,               IDH_WINDOW_TOOLLEFT,               NULL,
00221   IDM_WINDOW_COORDS,                 IDH_WINDOW_COORDS,                 NULL,
00222   IDM_WINDOW_DATA,                   IDH_WINDOW_DATA,                   NULL,
00223   IDM_WINDOW_UNDOACTIVE,             IDH_WINDOW_UNDOACTIVE,             NULL,
00224   IDM_WINDOW_COORD_DEF,              IDH_WINDOW_COORD_DEF,              NULL,
00225   IDM_WINDOW_COORD_LAST,             IDH_WINDOW_COORD_LAST,             NULL,
00226   IDM_WINDOW_SELECT,                 IDH_WINDOW_SELECT,                 NULL,
00227   IDM_WINDOW_HIDETOOLS,              IDH_WINDOW_HIDETOOLS,              NULL,
00228   IDM_WINDOW_SHOWOPENGL,             IDH_WINDOW_SHOWOPENGL,             NULL,
00229   IDM_WINDOW_VIEWOPENGL,             IDH_WINDOW_VIEWOPENGL,             NULL,
00230   IDM_WINDOW_QUICKRENDER,            IDH_WINDOW_QUICKRENDER,            NULL,
00231   IDM_STOP,                          IDH_STOP,                          NULL,
00232   IDM_NURBS_CREATE,                  IDH_NURBS_CREATE,                  NULL,
00233   IDM_NURBS_DELETE,                  IDH_NURBS_DELETE,                  NULL,
00234   IDM_NURBS_EDIT,                    IDH_NURBS_EDIT,                    NULL,
00235   IDM_NURBS_SPLIT,                   IDH_NURBS_SPLIT,                   NULL,
00236   IDM_NURBS_SETWEIGHTS,              IDH_NURBS_SETWEIGHTS,              NULL,
00237   IDM_NURBS_TRIANGULATE1,            IDH_NURBS_TRIANGULATE1,            NULL,
00238   IDM_NURBS_TRIANGULATE2,            IDH_NURBS_TRIANGULATE2,            NULL,
00239   IDM_NURBS_SELECT,                  IDH_NURBS_SELECT,                  NULL,
00240   IDM_NURBS_DESELECT,                IDH_NURBS_DESELECT,                NULL,
00241   IDM_NURBS_SWAP,                    IDH_NURBS_SWAP,                    NULL,
00242   IDM_NURBS_HIDE,                    IDH_NURBS_HIDE,                    NULL,
00243   IDM_NURBS_REVEAL,                  IDH_NURBS_REVEAL,                  NULL,
00244   IDM_NURBS_PRIM1,                   IDH_NURBS_PRIM1,                   NULL,
00245   IDM_NURBS_PRIM2,                   IDH_NURBS_PRIM2,                   NULL,
00246   IDM_NURBS_PRIM3,                   IDH_NURBS_PRIM3,                   NULL,
00247   IDM_NURBS_PRIM4,                   IDH_NURBS_PRIM4,                   NULL,
00248   IDM_HELP,                          IDH_HELP_H,                        NULL,
00249   IDM_HELP_HOME,                     IDH_HELP_HOME,                     NULL,
00250   IDM_HELP_SUPPORT,                  IDH_HELP_SUPPORT,                  NULL,
00251   IDM_HELP_GENERAL,                  IDH_HELP_GENERAL,                  NULL,
00252   IDM_HELP_HELP,                     IDH_HELP_HELP,                     NULL,
00253   IDM_HELP_ABOUT,                    IDH_HELP_ABOUT,                    NULL
00254 };
00255 
00256 void LoadMenuHelpTable(HWND hwnd){
00257  char *p;
00258  int i,cch;
00259  MenuHelpData[0].str=(char *)X__Malloc(32);
00260  strcpy(MenuHelpData[0].str,"      ");
00261  for(i=1;i<NMENUHELPDATA;i++){
00262    if((p = (char *)X__Malloc(CCHTEXTMAX)) == NULL)return;
00263    if((cch = LoadString(ghinst_main,MenuHelpData[i].sCode,p,CCHTEXTMAX)) == 0){
00264      X__Free(p);
00265      return;
00266    }
00267    p = (char *)X__Realloc(p,cch+1);
00268    if(p == NULL)return;
00269    MenuHelpData[i].str=p;
00270  }
00271 }
00272 
00273 
00274 
00275 UINT CheckMenuHelpData(UINT uItem){
00276  UINT i,id=0;       
00277  for(i=0;i<NMENUHELPDATA;i++){
00278    if(uItem == MenuHelpData[i].iCode){id=i; break;}
00279  }
00280  return id;
00281 }
00282 
00283 void DisplayMenuHelpData(HWND hwnd,UINT id){
00284  SendMessage(hwnd,SB_SETTEXT,(WPARAM)0,
00285              (LPARAM)MenuHelpData[id].str);
00286  return;
00287 }
00288 
00289 void FreeMenuHelpData(void){
00290  long i;
00291  for(i=0;i<NMENUHELPDATA;i++)
00292    if(MenuHelpData[i].str != NULL)X__Free(MenuHelpData[i].str);
00293  return;
00294 }

Generated on Sun Apr 27 14:20:09 2014 for OpenFX by  doxygen 1.5.6