예제 #1
0
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 );
}
예제 #2
0
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 );
}