HBRUSH DefWndControlColor(HDC hDC, UINT ctlType);
-static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
+static LRESULT WINAPI ScrollBarWndProcW( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
+static LRESULT WINAPI ScrollBarWndProcA( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
UINT STDCALL SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC);
BOOL STDCALL KillSystemTimer(HWND,UINT_PTR);
{
L"ScrollBar", /* name */
CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */
- ScrollBarWndProc, /* procW */
- NULL, /* procA (winproc is Unicode only) */
+ ScrollBarWndProcW, /* procW */
+ ScrollBarWndProcA, /* procA */
0, /* extra */
IDC_ARROW, /* cursor */
0 /* brush */
* ScrollBarWndProc
*/
static LRESULT WINAPI
-ScrollBarWndProc(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
+ScrollBarWndProc(WNDPROC DefWindowProc, HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
if (! IsWindow(Wnd))
{
{
WARN("unknown msg %04x wp=%04lx lp=%08lx\n", Msg, wParam, lParam);
}
- return DefWindowProcW(Wnd, Msg, wParam, lParam );
+ return DefWindowProc(Wnd, Msg, wParam, lParam );
}
return 0;
}
+static LRESULT WINAPI
+ScrollBarWndProcW(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
+{
+ return ScrollBarWndProc(DefWindowProcW, Wnd, Msg, wParam, lParam);
+}
+
+static LRESULT WINAPI
+ScrollBarWndProcA(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
+{
+ return ScrollBarWndProc(DefWindowProcA, Wnd, Msg, wParam, lParam);
+}
+
/* PUBLIC FUNCTIONS ***********************************************************/