OSDN Git Service

Change icon.ico. And fix icon bug, write ChangeLog.txt.
[ckw/ckw.git] / ckw.h
1 #ifndef __CKW_H__
2 #define __CKW_H__ 1
3
4 #define _WIN32_WINNT 0x0500
5 #define _UNICODE 1
6 #define  UNICODE 1
7 #include <windows.h>
8 #include <wchar.h>
9
10 #ifdef _MSC_VER
11 #define strcasecmp _stricmp
12 #endif
13 #ifndef COMMON_LVB_LEADING_BYTE
14 #define COMMON_LVB_LEADING_BYTE  0x0100
15 #endif
16 #ifndef COMMON_LVB_TRAILING_BYTE
17 #define COMMON_LVB_TRAILING_BYTE 0x0200
18 #endif
19
20 #define CSI_WndCols(csi) ((csi)->srWindow.Right - (csi)->srWindow.Left +1)
21 #define CSI_WndRows(csi) ((csi)->srWindow.Bottom - (csi)->srWindow.Top +1)
22
23 /* main.cpp */
24 extern HANDLE   gStdIn;
25 extern HANDLE   gStdOut;
26 extern DWORD    gFontW;
27 extern DWORD    gFontH;
28 extern DWORD    gBorderSize;
29 extern CONSOLE_SCREEN_BUFFER_INFO* gCSI;
30 extern CHAR_INFO*       gScreen;
31 BOOL WINAPI ReadConsoleOutput_Unicode(HANDLE,CHAR_INFO*,COORD,COORD,SMALL_RECT*);
32 void    makeNewWindow();
33
34 /* selection.cpp */
35 BOOL    selectionGetArea(SMALL_RECT& sr);
36 void    selectionClear(HWND hWnd);
37 void    onLBtnDown(HWND hWnd, int x, int y);
38 void    onLBtnUp(HWND hWnd, int x, int y);
39 void    onMouseMove(HWND hWnd, int x, int y);
40
41 /* misc.cpp */
42 void    copyChar(wchar_t*& p, CHAR_INFO* src, SHORT start, SHORT end, bool ret = true);
43 void    copyStringToClipboard(HWND hWnd, const wchar_t * str);
44 void    copyAllStringToClipboard(HWND hWnd);
45 void    onPasteFromClipboard(HWND hWnd);
46 void    onDropFile(HDROP hDrop);
47 void    sysmenu_init(HWND hWnd);
48 BOOL    onSysCommand(HWND hWnd, DWORD id);
49
50 #endif /* __CKW_H__ */