Patch by Jeffrey Morlan (mrnobo1024 at yahoo dot com, irc: Goplat), Registers ansi scroll bar proc.

svn path=/trunk/; revision=33960
This commit is contained in:
James Tabor 2008-06-14 05:34:02 +00:00
parent 427bda68a5
commit ddd1764f85

View file

@ -69,7 +69,8 @@ static BOOL ScrollTrackVertical;
HBRUSH DefWndControlColor(HDC hDC, UINT ctlType); 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); UINT STDCALL SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC);
BOOL STDCALL KillSystemTimer(HWND,UINT_PTR); BOOL STDCALL KillSystemTimer(HWND,UINT_PTR);
@ -81,8 +82,8 @@ const struct builtin_class_descr SCROLL_builtin_class =
{ {
L"ScrollBar", /* name */ L"ScrollBar", /* name */
CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */ CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */
ScrollBarWndProc, /* procW */ ScrollBarWndProcW, /* procW */
NULL, /* procA (winproc is Unicode only) */ ScrollBarWndProcA, /* procA */
0, /* extra */ 0, /* extra */
IDC_ARROW, /* cursor */ IDC_ARROW, /* cursor */
0 /* brush */ 0 /* brush */
@ -1252,7 +1253,7 @@ ScrollTrackScrollBar(HWND Wnd, INT SBType, POINT Pt)
* ScrollBarWndProc * ScrollBarWndProc
*/ */
static LRESULT WINAPI 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)) if (! IsWindow(Wnd))
{ {
@ -1454,12 +1455,24 @@ ScrollBarWndProc(HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{ {
WARN("unknown msg %04x wp=%04lx lp=%08lx\n", Msg, wParam, lParam); 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; 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 ***********************************************************/ /* PUBLIC FUNCTIONS ***********************************************************/