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

/*++
Copyright (c) 1999-2002 Microsoft Corporation
Module Name:
status.h
Environment:
Win32, User Mode
---*/
// Used as indexes into the rgnItemWidth & rgszItemText
// arrays. These are in order from left to right.
typedef enum
{
nMESSAGE_IDX_STATUSBAR, // Generic txt message such as menu help,
// or error messages, etc.
nSRCLIN_IDX_STATUSBAR, // Line num. & coloumn num. in src file
nCURSYS_IDX_STATUSBAR, // Current system
nPROCID_IDX_STATUSBAR, // Process ID
nTHRDID_IDX_STATUSBAR, // Thread ID
nSRCASM_IDX_STATUSBAR, // Src/Asm mode idicator
nOVRTYPE_IDX_STATUSBAR, // Insert/Overtype indicator
nCAPSLCK_IDX_STATUSBAR, // Caps lock indicator
nNUMLCK_IDX_STATUSBAR, // Num lock indicator
nMAX_IDX_STATUSBAR, // Max num items in enum
} nIDX_STATUSBAR_ITEMS;
extern BOOL g_ShowStatusBar;
// Init/Term functions
BOOL CreateStatusBar(HWND hwndParent);
void TerminateStatusBar();
void Show_StatusBar(BOOL bShow);
void WM_SIZE_StatusBar(WPARAM wParam, LPARAM lParam);
HWND GetHwnd_StatusBar();
// Some of the items are owner draw.
void OwnerDrawItem_StatusBar(LPDRAWITEMSTRUCT lpDrawItem);
//
// Status bar operations
//
void SetMessageText_StatusBar(UINT StringId);
void SetLineColumn_StatusBar(int newLine, int newColumn);
void SetSysPidTid_StatusBar(ULONG SysId, PSTR SysName,
ULONG ProcessId, ULONG ProcessSysId,
ULONG ThreadId, ULONG ThreadSysId);
// TRUE - considered on, and the text is displayed in black
// FALSE - considered off, and the text is displayed in dark gray
//
BOOL GetNumLock_StatusBar();
BOOL SetNumLock_StatusBar(BOOL newValue);
BOOL GetCapsLock_StatusBar();
BOOL SetCapsLock_StatusBar(BOOL newValue);
BOOL GetSrcMode_StatusBar();
BOOL SetSrcMode_StatusBar(BOOL bSrcMode);
BOOL GetOverType_StatusBar();
BOOL SetOverType_StatusBar(BOOL bOverType);