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

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

wine-990731 update

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