|
|
1.1 ! root 1: /* ! 2: Hatari ! 3: */ ! 4: ! 5: /* List of possible status bar icons */ ! 6: enum { ! 7: STATUS_ICON_FRAMERATE, ! 8: STATUS_ICON_FLOPPY, ! 9: STATUS_ICON_HARDDRIVE, ! 10: STATUS_ICON_PRINTER, ! 11: STATUS_ICON_RS232, ! 12: STATUS_ICON_SOUND, ! 13: STATUS_ICON_SCREEN, ! 14: ! 15: STATUS_ICON_COUNT ! 16: }; ! 17: ! 18: enum { ! 19: ICONSTATE_ON, /* Turn icon on, can only be turn off by... */ ! 20: ICONSTATE_OFF, /* Off, see above */ ! 21: ICONSTATE_UPDATE /* Show icons for 'x' frames */ ! 22: }; ! 23: ! 24: typedef struct { ! 25: int x,y; ! 26: int w,h; ! 27: } XYWH; ! 28: ! 29: typedef struct { ! 30: int x; // X offset from right edge of window ! 31: XYWH SrcBitmapPos; // XYWH on source icon bitmap ! 32: int DisplayCount; // Frames to display for(0=not displayed) ! 33: } STATUSICON; ! 34: ! 35: #define STATUS_ICONS_X_OFFSET 106 // Offset from edge of Window ! 36: #define STATUS_ICONS_Y_OFFSET 15 ! 37: #define STATUS_TEXT_X_OFFSET 8 // Offset from left of Window ! 38: ! 39: extern char *pszStatusBarHelpText; ! 40: ! 41: extern void StatusBar_SetIcon(int StatusIcon, int IconState); ! 42: extern void StatusBar_UpdateIcons(void); ! 43: extern void StatusBar_DrawAllIcons(void); ! 44: extern void StatusBar_DrawIcon(/*HDC hDC, HDC MemDC,*/int StatusIcon); ! 45: ! 46: extern void StatusBar_SetText(char *pString); ! 47: extern void StatusBar_Draw(void); ! 48: extern void StatusBar_DrawText(BOOL bClearBackground);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.