Module: wine Branch: master Commit: e630e4997d8f704bc75fe29e6804c10e388bbb66 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e630e4997d8f704bc75fe29e68...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Thu Feb 9 08:54:59 2012 +0300
comctl32: A test for auto-set TBSTYLE_TRANSPARENT style.
---
dlls/comctl32/tests/toolbar.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/toolbar.c b/dlls/comctl32/tests/toolbar.c index f1579b7..386511a 100644 --- a/dlls/comctl32/tests/toolbar.c +++ b/dlls/comctl32/tests/toolbar.c @@ -1825,6 +1825,19 @@ static void test_create(void)
DestroyWindow(hwnd); UnhookWindowsHook(WH_CBT, cbt_hook_proc); + + /* TBSTYLE_TRANSPARENT */ + hwnd = CreateWindowExA(0, TOOLBARCLASSNAME, NULL, + WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|TBSTYLE_FLAT|TBSTYLE_TOOLTIPS|TBSTYLE_GROUP, + 0, 0, 0, 0, hMainWnd, (HMENU)5, GetModuleHandle(NULL), NULL); + + style = GetWindowLongA(hwnd, GWL_STYLE); + ok((style & TBSTYLE_TRANSPARENT) == TBSTYLE_TRANSPARENT, "got 0x%08x\n", style); + + style = SendMessageA(hwnd, TB_GETSTYLE, 0, 0); + ok((style & TBSTYLE_TRANSPARENT) == TBSTYLE_TRANSPARENT, "got 0x%08x\n", style); + + DestroyWindow(hwnd); }
START_TEST(toolbar)