From 274608b60f8f0d6d2d8fadf83b2eeaa5014fdbba Mon Sep 17 00:00:00 2001 From: sje Date: Fri, 17 Nov 2006 13:56:15 +0000 Subject: put colse button on top of tabs using z-order git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@47 4f64403b-2f21-0410-a795-97e2b3489a10 --- justtabs/win.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'justtabs/win.cpp') diff --git a/justtabs/win.cpp b/justtabs/win.cpp index 9ac8022..b4a0461 100644 --- a/justtabs/win.cpp +++ b/justtabs/win.cpp @@ -174,7 +174,6 @@ BOOL CALLBACK FrameProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { rc.bottom += 2; MoveWindow(tab_ctrl, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, FALSE); - RedrawWindow(tab_ctrl, 0, 0, RDW_INVALIDATE | RDW_FRAME | RDW_ERASE); TabCtrl_AdjustRect(tab_ctrl, FALSE, &rc); // Position and size the static control to fit the @@ -184,8 +183,8 @@ BOOL CALLBACK FrameProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { SetWindowPos(active_window, HWND_TOP, rc.left - 3, rc.top - 1, rc.right - rc.left + 4, rc.bottom - rc.top + 2, 0); GetClientRect(hwnd, &rc); - SetWindowPos(GetDlgItem(hwnd,IDC_CHAT_CLOSE), 0, rc.right - 19, 3, 16, 16, SWP_NOZORDER | SWP_NOACTIVATE); - RedrawWindow(GetDlgItem(hwnd, IDC_CHAT_CLOSE), 0, 0, RDW_INVALIDATE); + SetWindowPos(GetDlgItem(hwnd,IDC_CHAT_CLOSE), tab_ctrl, rc.right - 19, 3, 16, 16, SWP_NOACTIVATE); + //RedrawWindow(GetDlgItem(hwnd, IDC_CHAT_CLOSE), 0, 0, RDW_INVALIDATE); } break; -- cgit v1.2.3