source: trunk/src/comctl32/flatsb.cpp@ 2895

Last change on this file since 2895 was 2895, checked in by cbratschi, 26 years ago

unicode and other changes

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