From 4052011e090165ace12df3404ef67d8b026a9dbc Mon Sep 17 00:00:00 2001 From: "Derek \"Turtle\" Roe" Date: Wed, 17 Mar 2021 04:28:54 -0500 Subject: [PATCH] Update TitleTip.h Fix title case, adjust spacing, remove some punctuation --- .../UserInterface/WTLControls/ClistCtrl/TitleTip.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Project64/UserInterface/WTLControls/ClistCtrl/TitleTip.h b/Source/Project64/UserInterface/WTLControls/ClistCtrl/TitleTip.h index a807efa8d..e299d2359 100644 --- a/Source/Project64/UserInterface/WTLControls/ClistCtrl/TitleTip.h +++ b/Source/Project64/UserInterface/WTLControls/ClistCtrl/TitleTip.h @@ -45,12 +45,12 @@ public: if ( CWindowImpl< CTitleTip >::Create( hWndParent, Area, NULL, WS_POPUP, WS_EX_TOOLWINDOW | WS_EX_TOPMOST ) == NULL ) return FALSE; - // create the tooltip + // Create the tooltip if ( !m_ttToolTip.Create( m_hWnd ) ) return FALSE; m_ttToolTip.SetMaxTipWidth( SHRT_MAX ); - // get system message font + // Get system message font WTL::CLogFont logFont; logFont.SetMessageBoxFont(); if ( !m_fntTitleFont.IsNull() ) @@ -75,12 +75,12 @@ public: CRect rcTextExtent( rcRect ); - // calculate item text extent... + // Calculate item text extent dcClient.DrawTextW( strItemText.ToUTF16().c_str(), (int)strItemText.length(), rcTextExtent, DT_LEFT | DT_SINGLELINE | DT_NOPREFIX | DT_VCENTER | DT_CALCRECT ); dcClient.SelectFont( hOldFont ); - // do not show titletip if entire text is visible + // Do not show title tip if entire text is visible if ( rcTextExtent.Width() <= rcRect.Width() - 1 ) return FALSE; @@ -92,7 +92,7 @@ public: m_ttToolTip.AddTool( m_hWnd, (LPCTSTR)m_strToolTip. substr(0,SHRT_MAX).c_str() ); } - // show titletip at new location + // Show title tip at new location if ( !SetWindowPos( NULL, rcRect.left - 4, rcRect.top, rcTextExtent.Width() + 11, rcRect.Height(), SWP_NOZORDER | SWP_SHOWWINDOW | SWP_NOACTIVATE | SWP_NOCOPYBITS ) ) return FALSE; @@ -147,7 +147,7 @@ public: CWindow wndParent( m_hWndParent ); UINT nHitTest = (UINT)wndParent.SendMessage( WM_NCHITTEST, 0, MAKELPARAM( ptMouse.x, ptMouse.y ) ); - // forward notifcation through to parent + // Forward notification through to parent if ( nHitTest == HTCLIENT ) { wndParent.ScreenToClient( &ptMouse );