- 455 名前:名無しさん@お腹いっぱい。 mailto:sage [2010/05/13(木) 14:27:18 ID:As2eG/080]
- コンパイル環境がないので誰か多段タブ対応頼む
--- /avesta-0.3.2.0/mew/widgets/Tab.cpp +++ /avesta-0.3.2.0-sc3/mew/widgets/Tab.cpp @@ -159,6 +159,10 @@ m_DragSwap = false; m_RButtonDown = false; __super::DoCreate(parent, NULL, DirNone, WS_CONTROL | CCS_NOLAYOUT | TBSTYLE_FLAT | TBSTYLE_LIST | TBSTYLE_CUSTOMERASE, WS_EX_CONTROLPARENT); + + ///HACK: 複数行タブ対応 + SetWindowLong( GWL_STYLE, GetWindowLong( GWL_STYLE ) | TCS_MULTILINE ); + ImmAssociateContext(m_hWnd, null); } void HandleDestroy() @@ -427,6 +431,12 @@ { GetItemRect(0, &rcHeader); GetClientRect(&rcClient); + + ///HACK: 複数行タブ対応 + RECT rcLastItem = { 0, 0, 0, 0 }; + GetItemRect( GetItemCount() - 1, &rcLastItem ); + rcHeader.bottom = rcLastItem.bottom; + rcHeader.left = rcClient.left; rcHeader.right = rcClient.right; rcHeader.top = rcClient.top;
|

|