ReactOS 0.4.15-dev-7704-gc07eb9f
flatsb.c File Reference
#include <stdarg.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "winuser.h"
#include "commctrl.h"
#include "comctl32.h"
#include "wine/debug.h"
Include dependency graph for flatsb.c:

Go to the source code of this file.

Classes

struct  FLATSB_INFO
 

Typedefs

typedef struct FLATSB_INFOLPFLATSB_INFO
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (commctrl)
 
BOOL WINAPI InitializeFlatSB (HWND hwnd)
 
HRESULT WINAPI UninitializeFlatSB (HWND hwnd)
 
BOOL WINAPI FlatSB_GetScrollProp (HWND hwnd, INT propIndex, LPINT prop)
 
BOOL WINAPI FlatSB_SetScrollProp (HWND hwnd, UINT index, INT newValue, BOOL flag)
 
BOOL WINAPI FlatSB_EnableScrollBar (HWND hwnd, int nBar, UINT flags)
 
BOOL WINAPI FlatSB_ShowScrollBar (HWND hwnd, int nBar, BOOL fShow)
 
BOOL WINAPI FlatSB_GetScrollRange (HWND hwnd, int nBar, LPINT min, LPINT max)
 
BOOL WINAPI FlatSB_GetScrollInfo (HWND hwnd, int nBar, LPSCROLLINFO info)
 
INT WINAPI FlatSB_GetScrollPos (HWND hwnd, int nBar)
 
INT WINAPI FlatSB_SetScrollPos (HWND hwnd, int nBar, INT pos, BOOL bRedraw)
 
INT WINAPI FlatSB_SetScrollInfo (HWND hwnd, int nBar, LPSCROLLINFO info, BOOL bRedraw)
 
INT WINAPI FlatSB_SetScrollRange (HWND hwnd, int nBar, INT min, INT max, BOOL bRedraw)
 
static LRESULT FlatSB_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
 
static LRESULT FlatSB_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
 
static LRESULT WINAPI FlatSB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
VOID FLATSB_Register (void)
 
VOID FLATSB_Unregister (void)
 

Typedef Documentation

◆ LPFLATSB_INFO

Function Documentation

◆ FlatSB_Create()

static LRESULT FlatSB_Create ( HWND  hwnd,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 228 of file flatsb.c.

229{
230 TRACE("[%p] wParam=%04lx lParam=%08lx\n", hwnd, wParam, lParam);
231 return 0;
232}
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define TRACE(s)
Definition: solgame.cpp:4
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

Referenced by FlatSB_WindowProc().

◆ FlatSB_Destroy()

static LRESULT FlatSB_Destroy ( HWND  hwnd,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 236 of file flatsb.c.

237{
238 TRACE("[%p] wParam=%04lx lParam=%08lx\n", hwnd, wParam, lParam);
239 return 0;
240}

Referenced by FlatSB_WindowProc().

◆ FlatSB_EnableScrollBar()

BOOL WINAPI FlatSB_EnableScrollBar ( HWND  hwnd,
int  nBar,
UINT  flags 
)

Definition at line 144 of file flatsb.c.

145{
146 return EnableScrollBar(hwnd, nBar, flags);
147}
GLbitfield flags
Definition: glext.h:7161
BOOL WINAPI EnableScrollBar(_In_ HWND, _In_ UINT, _In_ UINT)

◆ FlatSB_GetScrollInfo()

BOOL WINAPI FlatSB_GetScrollInfo ( HWND  hwnd,
int  nBar,
LPSCROLLINFO  info 
)

Definition at line 177 of file flatsb.c.

178{
179 return GetScrollInfo(hwnd, nBar, info);
180}
BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO)

◆ FlatSB_GetScrollPos()

INT WINAPI FlatSB_GetScrollPos ( HWND  hwnd,
int  nBar 
)

Definition at line 188 of file flatsb.c.

189{
190 return GetScrollPos(hwnd, nBar);
191}
int WINAPI GetScrollPos(_In_ HWND, _In_ int)

◆ FlatSB_GetScrollProp()

BOOL WINAPI FlatSB_GetScrollProp ( HWND  hwnd,
INT  propIndex,
LPINT  prop 
)

Definition at line 100 of file flatsb.c.

101{
102 TRACE("[%p] propIndex=%d\n", hwnd, propIndex);
103 return FALSE;
104}
#define FALSE
Definition: types.h:117

◆ FlatSB_GetScrollRange()

BOOL WINAPI FlatSB_GetScrollRange ( HWND  hwnd,
int  nBar,
LPINT  min,
LPINT  max 
)

Definition at line 166 of file flatsb.c.

167{
168 return GetScrollRange(hwnd, nBar, min, max);
169}
#define min(a, b)
Definition: monoChain.cc:55
#define max(a, b)
Definition: svc.c:63
BOOL WINAPI GetScrollRange(_In_ HWND, _In_ int, _Out_ LPINT, _Out_ LPINT)

◆ FLATSB_Register()

VOID FLATSB_Register ( void  )

Definition at line 267 of file flatsb.c.

268{
269 WNDCLASSW wndClass;
270
271 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
272 wndClass.style = CS_GLOBALCLASS;
274 wndClass.cbClsExtra = 0;
275 wndClass.cbWndExtra = sizeof(FLATSB_INFO *);
276 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
277 wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
278 wndClass.lpszClassName = FLATSB_CLASSW;
279
280 RegisterClassW (&wndClass);
281}
static LRESULT WINAPI FlatSB_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: flatsb.c:244
static const WCHAR FLATSB_CLASSW[]
Definition: commctrl.h:51
LPCWSTR lpszClassName
Definition: winuser.h:3184
HBRUSH hbrBackground
Definition: winuser.h:3182
int cbClsExtra
Definition: winuser.h:3177
UINT style
Definition: winuser.h:3175
WNDPROC lpfnWndProc
Definition: winuser.h:3176
int cbWndExtra
Definition: winuser.h:3178
HCURSOR hCursor
Definition: winuser.h:3181
#define ZeroMemory
Definition: winbase.h:1712
#define COLOR_WINDOW
Definition: winuser.h:917
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
#define IDC_ARROW
Definition: winuser.h:687
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2088
#define CS_GLOBALCLASS
Definition: winuser.h:652
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ FlatSB_SetScrollInfo()

INT WINAPI FlatSB_SetScrollInfo ( HWND  hwnd,
int  nBar,
LPSCROLLINFO  info,
BOOL  bRedraw 
)

Definition at line 210 of file flatsb.c.

211{
212 return SetScrollInfo(hwnd, nBar, info, bRedraw);
213}
int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL)

◆ FlatSB_SetScrollPos()

INT WINAPI FlatSB_SetScrollPos ( HWND  hwnd,
int  nBar,
INT  pos,
BOOL  bRedraw 
)

Definition at line 199 of file flatsb.c.

200{
201 return SetScrollPos(hwnd, nBar, pos, bRedraw);
202}
int WINAPI SetScrollPos(_In_ HWND, _In_ int, _In_ int, _In_ BOOL)

◆ FlatSB_SetScrollProp()

BOOL WINAPI FlatSB_SetScrollProp ( HWND  hwnd,
UINT  index,
INT  newValue,
BOOL  flag 
)

Definition at line 116 of file flatsb.c.

117{
118 TRACE("[%p] index=%u newValue=%d flag=%d\n", hwnd, index, newValue, flag);
119 return FALSE;
120}
GLuint index
Definition: glext.h:6031
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
Definition: glfuncs.h:52

◆ FlatSB_SetScrollRange()

INT WINAPI FlatSB_SetScrollRange ( HWND  hwnd,
int  nBar,
INT  min,
INT  max,
BOOL  bRedraw 
)

Definition at line 221 of file flatsb.c.

222{
223 return SetScrollRange(hwnd, nBar, min, max, bRedraw);
224}
BOOL WINAPI SetScrollRange(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ BOOL)

◆ FlatSB_ShowScrollBar()

BOOL WINAPI FlatSB_ShowScrollBar ( HWND  hwnd,
int  nBar,
BOOL  fShow 
)

Definition at line 155 of file flatsb.c.

156{
157 return ShowScrollBar(hwnd, nBar, fShow);
158}
BOOL WINAPI ShowScrollBar(_In_ HWND, _In_ int, _In_ BOOL)

◆ FLATSB_Unregister()

VOID FLATSB_Unregister ( void  )

Definition at line 285 of file flatsb.c.

286{
288}
#define NULL
Definition: types.h:112
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)

Referenced by DllMain().

◆ FlatSB_WindowProc()

static LRESULT WINAPI FlatSB_WindowProc ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 244 of file flatsb.c.

245{
246 if (!GetWindowLongPtrW(hwnd, 0) && (uMsg != WM_CREATE))
247 return DefWindowProcW( hwnd, uMsg, wParam, lParam );
248
249 switch (uMsg)
250 {
251 case WM_CREATE:
252 return FlatSB_Create (hwnd, wParam, lParam);
253
254 case WM_DESTROY:
255 return FlatSB_Destroy (hwnd, wParam, lParam);
256
257 default:
258 if ((uMsg >= WM_USER) && (uMsg < WM_APP) && !COMCTL32_IsReflectedMessage(uMsg))
259 ERR("unknown msg %04x wp=%08lx lp=%08lx\n",
260 uMsg, wParam, lParam);
261 return DefWindowProcW (hwnd, uMsg, wParam, lParam);
262 }
263}
#define ERR(fmt,...)
Definition: debug.h:110
BOOL COMCTL32_IsReflectedMessage(UINT uMsg) DECLSPEC_HIDDEN
Definition: commctrl.c:1748
#define WM_APP
Definition: eventvwr.h:73
static LRESULT FlatSB_Destroy(HWND hwnd, WPARAM wParam, LPARAM lParam)
Definition: flatsb.c:236
static LRESULT FlatSB_Create(HWND hwnd, WPARAM wParam, LPARAM lParam)
Definition: flatsb.c:228
#define GetWindowLongPtrW
Definition: winuser.h:4828
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WM_CREATE
Definition: winuser.h:1607
#define WM_USER
Definition: winuser.h:1894
#define WM_DESTROY
Definition: winuser.h:1608

Referenced by FLATSB_Register().

◆ InitializeFlatSB()

BOOL WINAPI InitializeFlatSB ( HWND  hwnd)

Definition at line 63 of file flatsb.c.

64{
65 TRACE("[%p]\n", hwnd);
66 return TRUE;
67}
#define TRUE
Definition: types.h:120

◆ UninitializeFlatSB()

HRESULT WINAPI UninitializeFlatSB ( HWND  hwnd)

Definition at line 83 of file flatsb.c.

84{
85 TRACE("[%p]\n", hwnd);
86 return S_FALSE;
87}
#define S_FALSE
Definition: winerror.h:2357

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( commctrl  )