ReactOS  0.4.15-dev-1070-ge1a01de
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
WPARAM wParam
Definition: combotst.c:138
#define TRACE(s)
Definition: solgame.cpp:4
LPARAM lParam
Definition: combotst.c:139

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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
WPARAM wParam
Definition: combotst.c:138
#define TRACE(s)
Definition: solgame.cpp:4
LPARAM lParam
Definition: combotst.c:139

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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define FALSE
Definition: types.h:117
#define TRACE(s)
Definition: solgame.cpp:4

◆ 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 }
BOOL WINAPI GetScrollRange(_In_ HWND, _In_ int, _Out_ LPINT, _Out_ LPINT)
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define max(a, b)
Definition: svc.c:63
#define min(a, b)
Definition: monoChain.cc:55

◆ 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;
273  wndClass.lpfnWndProc = FlatSB_WindowProc;
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 }
UINT style
Definition: winuser.h:3151
#define ZeroMemory
Definition: winbase.h:1648
int cbClsExtra
Definition: winuser.h:3153
#define COLOR_WINDOW
Definition: winuser.h:908
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3152
LPCWSTR lpszClassName
Definition: winuser.h:3160
int cbWndExtra
Definition: winuser.h:3154
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
HCURSOR hCursor
Definition: winuser.h:3157
static LRESULT WINAPI FlatSB_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: flatsb.c:244
HBRUSH hbrBackground
Definition: winuser.h:3158
static const WCHAR FLATSB_CLASSW[]
Definition: commctrl.h:51
#define IDC_ARROW
Definition: winuser.h:682
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define FALSE
Definition: types.h:117
GLuint index
Definition: glext.h:6031
#define TRACE(s)
Definition: solgame.cpp:4
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define max(a, b)
Definition: svc.c:63
#define min(a, b)
Definition: monoChain.cc:55
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
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 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR FLATSB_CLASSW[]
Definition: commctrl.h:51

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:
259  ERR("unknown msg %04x wp=%08lx lp=%08lx\n",
260  uMsg, wParam, lParam);
261  return DefWindowProcW (hwnd, uMsg, wParam, lParam);
262  }
263 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
static LRESULT FlatSB_Destroy(HWND hwnd, WPARAM wParam, LPARAM lParam)
Definition: flatsb.c:236
#define GetWindowLongPtrW
Definition: winuser.h:4804
WPARAM wParam
Definition: combotst.c:138
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
static LRESULT FlatSB_Create(HWND hwnd, WPARAM wParam, LPARAM lParam)
Definition: flatsb.c:228
#define WM_DESTROY
Definition: winuser.h:1591
#define WM_APP
Definition: eventvwr.h:70
#define WM_USER
Definition: winuser.h:1877
#define ERR(fmt,...)
Definition: debug.h:110
#define WM_CREATE
Definition: winuser.h:1590
BOOL COMCTL32_IsReflectedMessage(UINT uMsg) DECLSPEC_HIDDEN
Definition: commctrl.c:1748
LPARAM lParam
Definition: combotst.c:139

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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define TRUE
Definition: types.h:120
#define TRACE(s)
Definition: solgame.cpp:4

◆ 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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define S_FALSE
Definition: winerror.h:2357
#define TRACE(s)
Definition: solgame.cpp:4

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( commctrl  )