windows-nt/Source/XPSP1/NT/sdktools/debuggers/windbg/status.h

72 lines
1.8 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1999-2001 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
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;
// 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 SetPidTid_StatusBar(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);