Source code of Windows XP (NT5)
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.

71 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1999-2001 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. nPROCID_IDX_STATUSBAR, // Process ID
  16. nTHRDID_IDX_STATUSBAR, // Thread ID
  17. nSRCASM_IDX_STATUSBAR, // Src/Asm mode idicator
  18. nOVRTYPE_IDX_STATUSBAR, // Insert/Overtype indicator
  19. nCAPSLCK_IDX_STATUSBAR, // Caps lock indicator
  20. nNUMLCK_IDX_STATUSBAR, // Num lock indicator
  21. nMAX_IDX_STATUSBAR, // Max num items in enum
  22. } nIDX_STATUSBAR_ITEMS;
  23. // Init/Term functions
  24. BOOL CreateStatusBar(HWND hwndParent);
  25. void TerminateStatusBar();
  26. void Show_StatusBar(BOOL bShow);
  27. void WM_SIZE_StatusBar(WPARAM wParam, LPARAM lParam);
  28. HWND GetHwnd_StatusBar();
  29. // Some of the items are owner draw.
  30. void OwnerDrawItem_StatusBar(LPDRAWITEMSTRUCT lpDrawItem);
  31. //
  32. // Status bar operations
  33. //
  34. void SetMessageText_StatusBar(UINT StringId);
  35. void SetLineColumn_StatusBar(int newLine, int newColumn);
  36. void SetPidTid_StatusBar(ULONG ProcessId, ULONG ProcessSysId,
  37. ULONG ThreadId, ULONG ThreadSysId);
  38. // TRUE - considered on, and the text is displayed in black
  39. // FALSE - considered off, and the text is displayed in dark gray
  40. //
  41. BOOL GetNumLock_StatusBar();
  42. BOOL SetNumLock_StatusBar(BOOL newValue);
  43. BOOL GetCapsLock_StatusBar();
  44. BOOL SetCapsLock_StatusBar(BOOL newValue);
  45. BOOL GetSrcMode_StatusBar();
  46. BOOL SetSrcMode_StatusBar(BOOL bSrcMode);
  47. BOOL GetOverType_StatusBar();
  48. BOOL SetOverType_StatusBar(BOOL bOverType);