home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / 3DTOSHI2.ZIP / mpgui / include / guimenu.h < prev    next >
C/C++ Source or Header  |  1996-03-23  |  1KB  |  50 lines

  1.  
  2. // guimenu.h
  3. //
  4. // Copyright (c) 1995 by Toshiaki Tsuji, all rights reserved.
  5.  
  6. #ifndef __GUIMENU_H__
  7. #define __GUIMENU_H__
  8.  
  9. #include "stdgfx.h"
  10. #include "guiobj.h"
  11.  
  12. #if defined (__FORWINDOWS__)
  13.   #define MENU_STATE_ENABLED  MF_ENABLED
  14.   #define MENU_STATE_DISABLED MF_DISABLED
  15.   #define MENU_STATE_GRAYED   MF_GRAYED  
  16. #elif defined (__FOROS2__)
  17.   #define HMENU HANDLE
  18.   #define MENU_STATE_ENABLED  1
  19.   #define MENU_STATE_DISABLED 2
  20.   #define MENU_STATE_GRAYED   4
  21. #elif defined (__FORDOS__)
  22.   #define HMENU HANDLE
  23.   #define MENU_STATE_ENABLED  1
  24.   #define MENU_STATE_DISABLED 2
  25.   #define MENU_STATE_GRAYED   4
  26. #elif defined (__FORUNIX__)
  27.   #define HMENU HANDLE
  28.   #define MENU_STATE_ENABLED  1
  29.   #define MENU_STATE_DISABLED 2
  30.   #define MENU_STATE_GRAYED   4
  31. #endif
  32.  
  33. class GUIMENU : public GUIOBJECT
  34.   {
  35.     protected :
  36.       HMENU hMenu;
  37.  
  38.     public :
  39.       GUIMENU ();
  40.       virtual ~GUIMENU ();
  41.  
  42.       BOOLEAN Load ( STRING Name );
  43.       HMENU GetHandle () { return hMenu; };
  44.  
  45.       VOID SetItemState ( LONG CommandID, LONG State );
  46.   }; // End of GUIMENU
  47.  
  48. #endif
  49.  
  50.