Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4 KiB

  1. /*************************************************************************
  2. **
  3. ** OLE 2.0 Sample Code
  4. **
  5. ** status.h
  6. **
  7. ** This file contains typedefs, defines, global variable declarations,
  8. ** and function prototypes for the status bar window.
  9. **
  10. ** (c) Copyright Microsoft Corp. 1992 - 1993 All Rights Reserved
  11. **
  12. *************************************************************************/
  13. // Sizes of statusbar items
  14. #if defined( USE_STATUSBAR )
  15. #define STATUS_HEIGHT 23
  16. #else
  17. #define STATUS_HEIGHT 0
  18. #endif
  19. #define STATUS_RLEFT 8
  20. #define STATUS_RRIGHT 400
  21. #define STATUS_RTOP 3
  22. #define STATUS_RBOTTOM 20
  23. #define STATUS_TTOP 4
  24. #define STATUS_TLEFT 11
  25. #define STATUS_THEIGHT 18
  26. typedef enum {
  27. STATUS_READY,
  28. STATUS_BLANK
  29. } STATCONTROL;
  30. // Window for status bar.
  31. extern HWND hwndStatusbar;
  32. BOOL RegisterStatusClass(HINSTANCE hInstance);
  33. HWND CreateStatusWindow(HWND hWndApp, HINSTANCE hInst);
  34. void DestroyStatusWindow(HWND hWndStatusBar);
  35. void AssignPopupMessage(HMENU hmenuPopup, char *szMessage);
  36. void SetStatusText(HWND hWndStatusBar, LPSTR lpszMessage);
  37. void GetItemMessage(UINT wIDItem, LPSTR FAR* lplpszMessage);
  38. void GetPopupMessage(HMENU hmenuPopup, LPSTR FAR* lplpszMessage);
  39. void GetSysMenuMessage(UINT wIDItem, LPSTR FAR* lplpszMessage);
  40. void GetControlMessage(STATCONTROL scCommand, LPSTR FAR* lplpszMessage);