1 | /* $Id: CCBase.h,v 1.7 2000-03-30 15:39:09 cbratschi Exp $ */
|
---|
2 | /*
|
---|
3 | * COMCTL32 Base Functions and Macros for all Controls
|
---|
4 | *
|
---|
5 | * Copyright 2000 Christoph Bratschi (cbratschi@datacomm.ch)
|
---|
6 | */
|
---|
7 | #ifndef __CCBASE_H
|
---|
8 | #define __CCBASE_H
|
---|
9 |
|
---|
10 | #define getInfoPtr(hwnd) ((COMCTL32_HEADER*)GetWindowLongA(hwnd,0))
|
---|
11 | #define setInfoPtr(hwnd,infoPtr) (SetWindowLongA(hwnd,0,(DWORD)infoPtr))
|
---|
12 |
|
---|
13 | typedef struct
|
---|
14 | {
|
---|
15 | DWORD dwSize; //whole structure size
|
---|
16 | INT iVersion; //version
|
---|
17 | BOOL fUnicode; //Unicode flag
|
---|
18 | UINT uNotifyFormat; //notify format
|
---|
19 | HWND hwndNotify; //notify window
|
---|
20 | } COMCTL32_HEADER;
|
---|
21 |
|
---|
22 | PVOID initControl(HWND hwnd,DWORD dwSize);
|
---|
23 | VOID doneControl(HWND hwnd);
|
---|
24 |
|
---|
25 | LRESULT defComCtl32ProcA(HWND hwnd,UINT Msg,WPARAM wParam,LPARAM lParam);
|
---|
26 | LRESULT defComCtl32ProcW(HWND hwnd,UINT Msg,WPARAM wParam,LPARAM lParam);
|
---|
27 |
|
---|
28 | BOOL isUnicodeNotify(COMCTL32_HEADER *infoPtr);
|
---|
29 | BOOL isUnicodeNotify(HWND hwnd);
|
---|
30 |
|
---|
31 | HWND getNotifyWindow(COMCTL32_HEADER *infoPtr);
|
---|
32 | HWND getNotifyWindow(COMCTL32_HEADER *infoPtr);
|
---|
33 |
|
---|
34 | LRESULT sendNotify(HWND hwnd,UINT code);
|
---|
35 | LRESULT sendNotify(HWND hwndFrom,HWND hwndTo,UINT code);
|
---|
36 | LRESULT sendNotify(HWND hwnd,UINT code,LPNMHDR nmhdr);
|
---|
37 | LRESULT sendNotify(HWND hwndFrom,HWND hwndTo,UINT code,LPNMHDR nmhdr);
|
---|
38 | LRESULT sendNotifyFormat(HWND hwnd,HWND hwndFrom,LPARAM command);
|
---|
39 | LRESULT sendCommand(HWND hwnd,UINT wNotifyCode);
|
---|
40 | LRESULT sendHScroll(HWND hwnd,UINT wNotifyCode);
|
---|
41 | LRESULT sendVScroll(HWND hwnd,UINT wNotifyCode);
|
---|
42 |
|
---|
43 | HWND createToolTip(HWND hwnd,UINT flags,BOOL addtool);
|
---|
44 | VOID destroyToolTip(HWND hwndToolTip);
|
---|
45 |
|
---|
46 | VOID drawStubControl(HWND hwnd,HDC hdc);
|
---|
47 |
|
---|
48 | INT lstrcmpAtoW(CHAR* textA,WCHAR* textW);
|
---|
49 |
|
---|
50 | #endif
|
---|