Last change
on this file since 2858 was 2858, checked in by cbratschi, 26 years ago |
Corel 20000212, TREEVIEW_Sort fix, CCBase
|
File size:
899 bytes
|
Line | |
---|
1 | /* $Id: CCBase.h,v 1.1 2000-02-22 17:11:38 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 | } COMCTL32_HEADER;
|
---|
20 |
|
---|
21 | PVOID initControl(HWND hwnd,DWORD dwSize);
|
---|
22 | VOID doneControl(HWND hwnd);
|
---|
23 |
|
---|
24 | LRESULT defComCtl32ProcA(HWND hwnd,UINT Msg,WPARAM wParam,LPARAM lParam);
|
---|
25 | LRESULT defComCtl32ProcW(HWND hwnd,UINT Msg,WPARAM wParam,LPARAM lParam);
|
---|
26 |
|
---|
27 | LRESULT sendNotify(HWND hwnd,UINT code);
|
---|
28 | LRESULT sendNotifyFormat(HWND hwnd,HWND hwndFrom,LPARAM command);
|
---|
29 |
|
---|
30 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.