mirror of
https://github.com/reactos/wine.git
synced 2024-12-03 17:31:15 +00:00
comctl32/tests: Basic test for PGN_CALCSIZE.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e804e9a5bc
commit
948dd848fb
@ -1036,6 +1036,8 @@ PAGER_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
{
|
{
|
||||||
PAGER_INFO *infoPtr = (PAGER_INFO *)GetWindowLongPtrW(hwnd, 0);
|
PAGER_INFO *infoPtr = (PAGER_INFO *)GetWindowLongPtrW(hwnd, 0);
|
||||||
|
|
||||||
|
TRACE("(%p, %#x, %#lx, %#lx)\n", hwnd, uMsg, wParam, lParam);
|
||||||
|
|
||||||
if (!infoPtr && (uMsg != WM_CREATE))
|
if (!infoPtr && (uMsg != WM_CREATE))
|
||||||
return DefWindowProcW (hwnd, uMsg, wParam, lParam);
|
return DefWindowProcW (hwnd, uMsg, wParam, lParam);
|
||||||
|
|
||||||
|
@ -83,6 +83,28 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
|
|||||||
add_message(sequences, PAGER_SEQ_INDEX, &msg);
|
add_message(sequences, PAGER_SEQ_INDEX, &msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (message == WM_NOTIFY)
|
||||||
|
{
|
||||||
|
NMHDR *nmhdr = (NMHDR *)lParam;
|
||||||
|
|
||||||
|
switch (nmhdr->code)
|
||||||
|
{
|
||||||
|
case PGN_CALCSIZE:
|
||||||
|
{
|
||||||
|
NMPGCALCSIZE *nmpgcs = (NMPGCALCSIZE *)lParam;
|
||||||
|
DWORD style = GetWindowLongA(nmpgcs->hdr.hwndFrom, GWL_STYLE);
|
||||||
|
|
||||||
|
if (style & PGS_HORZ)
|
||||||
|
ok(nmpgcs->dwFlag == PGF_CALCWIDTH, "Unexpected flags %#x.\n", nmpgcs->dwFlag);
|
||||||
|
else
|
||||||
|
ok(nmpgcs->dwFlag == PGF_CALCHEIGHT, "Unexpected flags %#x.\n", nmpgcs->dwFlag);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
defwndproc_counter++;
|
defwndproc_counter++;
|
||||||
ret = DefWindowProcA(hwnd, message, wParam, lParam);
|
ret = DefWindowProcA(hwnd, message, wParam, lParam);
|
||||||
defwndproc_counter--;
|
defwndproc_counter--;
|
||||||
|
Loading…
Reference in New Issue
Block a user