home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / ftes46b5.zip / ftes46b5 / src / pm_tool.h < prev    next >
C/C++ Source or Header  |  1997-05-30  |  698b  |  36 lines

  1. #ifndef __TOOLBAR_H
  2. #define __TOOLBAR_H
  3.  
  4. #define tiBITMAP     1
  5. #define tiSEPARATOR  2
  6.  
  7. #define tfDISABLED   1
  8. #define tfDEPRESSED  0x8000
  9.  
  10. #define WC_MTOOLBAR  "MToolBar"
  11.  
  12. typedef struct {
  13.     ULONG ulType;
  14.     ULONG ulId;
  15.     ULONG ulCommand;
  16.     ULONG ulFlags;
  17.     HBITMAP hBitmap;
  18. } ToolBarItem;
  19.  
  20. typedef struct {
  21.     USHORT cb;
  22.     LONG ulCount;
  23.     ToolBarItem *pItems;
  24.     LONG ulDepressed;
  25. } ToolBarData;
  26.  
  27. MRESULT EXPENTRY ToolBarProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  28. void RegisterToolBarClass(HAB hab);
  29. HWND CreateToolBar(HWND parent,
  30.                    HWND owner,
  31.                    ULONG id,
  32.                    ULONG count,
  33.                    ToolBarItem *items);
  34.  
  35. #endif
  36.