source: trunk/src/comctl32/flatsb.c@ 60

Last change on this file since 60 was 60, checked in by achimha, 26 years ago

* empty log message *

File size: 3.2 KB
Line 
1/*
2 * Flat Scrollbar control
3 *
4 * Copyright 1998, 1999 Eric Kohl
5 * Copyright 1998 Alex Priem
6 * Copyright 1999 Achim Hasenmueller
7 *
8 * NOTES
9 * This is just a dummy control. An author is needed! Any volunteers?
10 * I will only improve this control once in a while.
11 * Eric <ekohl@abo.rhein-zeitung.de>
12 *
13 * TODO:
14 * - All messages.
15 * - All notifications.
16 *
17 */
18
19#include "winbase.h"
20#include "commctrl.h"
21#include "flatsb.h"
22
23
24#define FlatSB_GetInfoPtr(hwnd) ((FLATSB_INFO*)GetWindowLongA (hwnd, 0))
25
26
27BOOL WINAPI
28FlatSB_EnableScrollBar(HWND hwnd, INT dummy, UINT dummy2)
29{
30// FIXME_(commctrl)("stub\n");
31 return 0;
32}
33
34BOOL WINAPI
35FlatSB_ShowScrollBar(HWND hwnd, INT code, BOOL flag)
36{
37// FIXME_(commctrl)("stub\n");
38 return 0;
39}
40
41BOOL WINAPI
42FlatSB_GetScrollRange(HWND hwnd, INT code, LPINT min, LPINT max)
43{
44// FIXME_(commctrl)("stub\n");
45 return 0;
46}
47
48BOOL WINAPI
49FlatSB_GetScrollInfo(HWND hwnd, INT code, LPSCROLLINFO info)
50{
51// FIXME_(commctrl)("stub\n");
52 return 0;
53}
54
55INT WINAPI
56FlatSB_GetScrollPos(HWND hwnd, INT code)
57{
58// FIXME_(commctrl)("stub\n");
59 return 0;
60}
61
62BOOL WINAPI
63FlatSB_GetScrollProp(HWND hwnd, INT propIndex, LPINT prop)
64{
65// FIXME_(commctrl)("stub\n");
66 return 0;
67}
68
69
70INT WINAPI
71FlatSB_SetScrollPos(HWND hwnd, INT code, INT pos, BOOL fRedraw)
72{
73// FIXME_(commctrl)("stub\n");
74 return 0;
75}
76
77INT WINAPI
78FlatSB_SetScrollInfo(HWND hwnd, INT code, LPSCROLLINFO info, BOOL fRedraw)
79{
80// FIXME_(commctrl)("stub\n");
81 return 0;
82}
83
84INT WINAPI
85FlatSB_SetScrollRange(HWND hwnd, INT code, INT min, INT max, BOOL fRedraw)
86{
87// FIXME_(commctrl)("stub\n");
88 return 0;
89}
90
91BOOL WINAPI
92FlatSB_SetScrollProp(HWND hwnd, UINT index, INT newValue, BOOL flag)
93{
94// FIXME_(commctrl)("stub\n");
95 return 0;
96}
97
98
99BOOL WINAPI InitializeFlatSB(HWND hwnd)
100{
101// FIXME_(commctrl)("stub\n");
102 return 0;
103}
104
105HRESULT WINAPI UninitializeFlatSB(HWND hwnd)
106{
107// FIXME_(commctrl)("stub\n");
108 return 0;
109}
110
111
112
113static LRESULT
114FlatSB_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
115{
116 return 0;
117}
118
119
120static LRESULT
121FlatSB_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
122{
123 return 0;
124}
125
126
127
128
129LRESULT WINAPI
130FlatSB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
131{
132 switch (uMsg)
133 {
134
135 case WM_CREATE:
136 return FlatSB_Create (hwnd, wParam, lParam);
137
138 case WM_DESTROY:
139 return FlatSB_Destroy (hwnd, wParam, lParam);
140
141 default:
142// if (uMsg >= WM_USER)
143// ERR_(datetime)("unknown msg %04x wp=%08x lp=%08lx\n",
144// uMsg, wParam, lParam);
145 return DefWindowProcA (hwnd, uMsg, wParam, lParam);
146 }
147 return 0;
148}
149
150
151VOID
152FLATSB_Register (VOID)
153{
154 WNDCLASSA wndClass;
155
156 if (GlobalFindAtomA (FLATSB_CLASSA)) return;
157
158 ZeroMemory (&wndClass, sizeof(WNDCLASSA));
159 wndClass.style = CS_GLOBALCLASS;
160 wndClass.lpfnWndProc = (WNDPROC)FlatSB_WindowProc;
161 wndClass.cbClsExtra = 0;
162 wndClass.cbWndExtra = sizeof(FLATSB_INFO *);
163 wndClass.hCursor = LoadCursorA (0, IDC_ARROWA);
164 wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
165 wndClass.lpszClassName = FLATSB_CLASSA;
166
167 RegisterClassA (&wndClass);
168}
169
170
171VOID
172FLATSB_Unregister (VOID)
173{
174 if (GlobalFindAtomA (FLATSB_CLASSA))
175 UnregisterClassA (FLATSB_CLASSA, (HINSTANCE)NULL);
176}
177
Note: See TracBrowser for help on using the repository browser.