void AeroControlBase::DrawEditBorder(HWND hWnd) { LONG_PTR dwStyleEx = GetWindowLongPtr(hWnd, GWL_EXSTYLE); if(!(dwStyleEx&WS_EX_CLIENTEDGE)) return; COLORREF cr = RGB(0x00, 0x00, 0x00); VERIFY(GetEditBorderColor(hWnd, &cr)); Color clr; clr.SetFromCOLORREF(cr); DrawSolidWndRectOnParent(hWnd, clr ); }
void DrawEditBorder(HWND hWnd, PAERO_SUBCLASS_WND_DATA pWndData) { ASSERT(pWndData); ASSERT(pWndData->m_pUxTheme); LONG_PTR dwStyleEx = GetWindowLongPtr(hWnd, GWL_EXSTYLE); if(!(dwStyleEx&WS_EX_CLIENTEDGE)) return; COLORREF cr = RGB(0x00, 0x00, 0x00); VERIFY(GetEditBorderColor(hWnd, pWndData->m_pUxTheme, &cr)); Color clr; clr.SetFromCOLORREF(cr); DrawSolidWndRectOnParent(hWnd, clr ); }