X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=dll%2Fcpl%2Fconsole%2Fconsole.h;h=04508bf063109f2fb544acd3c969927c374a775c;hp=a81c96528618508980bc1bc22d45bb709b244a61;hb=c4a412a2b9fd77807ad75ab4ad9337c008a850f4;hpb=8db8073cbb2ceddf2cd8ffa6fbe0893c95941034 diff --git a/dll/cpl/console/console.h b/dll/cpl/console/console.h index a81c9652861..04508bf0631 100644 --- a/dll/cpl/console/console.h +++ b/dll/cpl/console/console.h @@ -2,32 +2,32 @@ #define CONSOLE_H__ #include +#include +#include #define WIN32_NO_STATUS #include #include + +#include #include +#include +#include + #include -#include #include #include +#include + #include "resource.h" #define EnableDlgItem(hDlg, nID, bEnable) \ EnableWindow(GetDlgItem((hDlg), (nID)), (bEnable)) /* Shared header with the GUI Terminal Front-End from consrv.dll */ -#include "consolecpl.h" - -typedef struct -{ - int idIcon; - int idName; - int idDescription; - APPLET_PROC AppletProc; -} APPLET, *PAPPLET; +#include "concfg.h" // in /winsrv/concfg/ typedef enum _TEXT_TYPE { @@ -35,11 +35,56 @@ typedef enum _TEXT_TYPE Popup } TEXT_TYPE; -BOOL ApplyConsoleInfo(HWND hwndDlg, PCONSOLE_PROPS pConInfo); -VOID PaintConsole(LPDRAWITEMSTRUCT drawItem, PCONSOLE_PROPS pConInfo); -BOOL PaintText(LPDRAWITEMSTRUCT drawItem, PCONSOLE_PROPS pConInfo, TEXT_TYPE TextMode); - -// Globals +/* Globals */ extern HINSTANCE hApplet; +extern PCONSOLE_STATE_INFO ConInfo; +extern HFONT hCurrentFont; + +VOID ApplyConsoleInfo(HWND hwndDlg); + +/* Preview Windows */ +BOOL +RegisterWinPrevClass( + IN HINSTANCE hInstance); + +BOOL +UnRegisterWinPrevClass( + IN HINSTANCE hInstance); + + +VOID +PaintText( + IN LPDRAWITEMSTRUCT drawItem, + IN PCONSOLE_STATE_INFO pConInfo, + IN TEXT_TYPE TextMode); + + +struct _LIST_CTL; + +typedef INT (*PLIST_GETCOUNT)(IN struct _LIST_CTL* ListCtl); +typedef ULONG_PTR (*PLIST_GETDATA)(IN struct _LIST_CTL* ListCtl, IN INT Index); + +typedef struct _LIST_CTL +{ + HWND hWndList; + PLIST_GETCOUNT GetCount; + PLIST_GETDATA GetData; +} LIST_CTL, *PLIST_CTL; + +UINT +BisectListSortedByValueEx( + IN PLIST_CTL ListCtl, + IN ULONG_PTR Value, + IN UINT itemStart, + IN UINT itemEnd, + OUT PUINT pValueItem OPTIONAL, + IN BOOL BisectRightOrLeft); + +UINT +BisectListSortedByValue( + IN PLIST_CTL ListCtl, + IN ULONG_PTR Value, + OUT PUINT pValueItem OPTIONAL, + IN BOOL BisectRightOrLeft); #endif /* CONSOLE_H__ */