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.

75 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1999-2002 Microsoft Corporation
  3. Module Name:
  4. status.h
  5. Environment:
  6. Win32, User Mode
  7. ---*/
  8. // Used as indexes into the rgnItemWidth & rgszItemText
  9. // arrays. These are in order from left to right.
  10. typedef enum
  11. {
  12. nMESSAGE_IDX_STATUSBAR, // Generic txt message such as menu help,
  13. // or error messages, etc.
  14. nSRCLIN_IDX_STATUSBAR, // Line num. & coloumn num. in src file
  15. nCURSYS_IDX_STATUSBAR, // Current system
  16. nPROCID_IDX_STATUSBAR, // Process ID
  17. nTHRDID_IDX_STATUSBAR, // Thread ID
  18. nSRCASM_IDX_STATUSBAR, // Src/Asm mode idicator
  19. nOVRTYPE_IDX_STATUSBAR, // Insert/Overtype indicator
  20. nCAPSLCK_IDX_STATUSBAR, // Caps lock indicator
  21. nNUMLCK_IDX_STATUSBAR, // Num lock indicator
  22. nMAX_IDX_STATUSBAR, // Max num items in enum
  23. } nIDX_STATUSBAR_ITEMS;
  24. extern BOOL g_ShowStatusBar;
  25. // Init/Term functions
  26. BOOL CreateStatusBar(HWND hwndParent);
  27. void TerminateStatusBar();
  28. void Show_StatusBar(BOOL bShow);
  29. void WM_SIZE_StatusBar(WPARAM wParam, LPARAM lParam);
  30. HWND GetHwnd_StatusBar();
  31. // Some of the items are owner draw.
  32. void OwnerDrawItem_StatusBar(LPDRAWITEMSTRUCT lpDrawItem);
  33. //
  34. // Status bar operations
  35. //
  36. void SetMessageText_StatusBar(UINT StringId);
  37. void SetLineColumn_StatusBar(int newLine, int newColumn);
  38. void SetSysPidTid_StatusBar(ULONG SysId, PSTR SysName,
  39. ULONG ProcessId, ULONG ProcessSysId,
  40. ULONG ThreadId, ULONG ThreadSysId);
  41. // TRUE - considered on, and the text is displayed in black
  42. // FALSE - considered off, and the text is displayed in dark gray
  43. //
  44. BOOL GetNumLock_StatusBar();
  45. BOOL SetNumLock_StatusBar(BOOL newValue);
  46. BOOL GetCapsLock_StatusBar();
  47. BOOL SetCapsLock_StatusBar(BOOL newValue);
  48. BOOL GetSrcMode_StatusBar();
  49. BOOL SetSrcMode_StatusBar(BOOL bSrcMode);
  50. BOOL GetOverType_StatusBar();
  51. BOOL SetOverType_StatusBar(BOOL bOverType);