Alexandre Julliard : comctl32/tests: Set the listview image list after WM_CREATE has been processed.
Alexandre Julliard
julliard at winehq.org
Fri Mar 6 09:49:31 CST 2009
Module: wine
Branch: master
Commit: f493122879a8e0292732270f600f08a53e8cce5d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f493122879a8e0292732270f600f08a53e8cce5d
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Mar 5 23:00:36 2009 +0100
comctl32/tests: Set the listview image list after WM_CREATE has been processed.
---
dlls/comctl32/tests/listview.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 4033e9e..4562f2e 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -748,13 +748,16 @@ static HIMAGELIST test_create_imagelist;
static LRESULT CALLBACK create_test_wndproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
+ LRESULT ret;
+
if (uMsg == WM_CREATE)
{
LPCREATESTRUCT lpcs = (LPCREATESTRUCT)lParam;
lpcs->style |= LVS_REPORT;
- SendMessage(hwnd, LVM_SETIMAGELIST, 0, (LPARAM)test_create_imagelist);
}
- return CallWindowProc(listviewWndProc, hwnd, uMsg, wParam, lParam);
+ ret = CallWindowProc(listviewWndProc, hwnd, uMsg, wParam, lParam);
+ if (uMsg == WM_CREATE) SendMessage(hwnd, LVM_SETIMAGELIST, 0, (LPARAM)test_create_imagelist);
+ return ret;
}
static void test_create(void)
More information about the wine-cvs
mailing list