source: trunk/src/comctl32/CCBase.h@ 3369

Last change on this file since 3369 was 3369, checked in by cbratschi, 25 years ago

listview: ver 4 feature complete

File size: 1.9 KB
Line 
1/* $Id: CCBase.h,v 1.8 2000-04-12 16:38:58 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
13typedef 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
22PVOID initControl(HWND hwnd,DWORD dwSize);
23VOID doneControl(HWND hwnd);
24
25LRESULT defComCtl32ProcA(HWND hwnd,UINT Msg,WPARAM wParam,LPARAM lParam);
26LRESULT defComCtl32ProcW(HWND hwnd,UINT Msg,WPARAM wParam,LPARAM lParam);
27
28BOOL isUnicodeNotify(COMCTL32_HEADER *infoPtr);
29BOOL isUnicodeNotify(HWND hwnd);
30
31HWND getNotifyWindow(COMCTL32_HEADER *infoPtr);
32HWND getNotifyWindow(COMCTL32_HEADER *infoPtr);
33
34LRESULT sendNotify(HWND hwnd,UINT code);
35LRESULT sendNotify(HWND hwndFrom,HWND hwndTo,UINT code);
36LRESULT sendNotify(HWND hwnd,UINT code,LPNMHDR nmhdr);
37LRESULT sendNotify(HWND hwndFrom,HWND hwndTo,UINT code,LPNMHDR nmhdr);
38LRESULT sendNotifyFormat(HWND hwnd,HWND hwndFrom,LPARAM command);
39LRESULT sendCommand(HWND hwnd,UINT wNotifyCode);
40LRESULT sendHScroll(HWND hwnd,UINT wNotifyCode);
41LRESULT sendVScroll(HWND hwnd,UINT wNotifyCode);
42
43HWND createToolTip(HWND hwnd,UINT flags,BOOL addtool);
44VOID destroyToolTip(HWND hwndToolTip);
45
46VOID drawStubControl(HWND hwnd,HDC hdc);
47
48INT lstrcmpAtoW(CHAR *textA,WCHAR *textW);
49INT lstrcmpAW(WCHAR *textA,BOOL textaunicode,WCHAR *textB,BOOL textbunicode);
50
51CHAR* lstrstrA(CHAR *text,CHAR *subtext);
52WCHAR* lstrstrW(WCHAR *text,WCHAR *subtext);
53CHAR* lstrstrAtoW(CHAR *text,WCHAR *subtext);
54WCHAR* lstrstrWtoA(WCHAR *text,CHAR *subtext);
55WCHAR* lstrstrAW(WCHAR *text,BOOL textunicode,WCHAR *subtext,BOOL subtextunicode);
56
57#endif
Note: See TracBrowser for help on using the repository browser.