void CHEMView::OnNcPaint()
{
    HDC hdc;
    hdc = ::GetWindowDC(m_hWnd);
    // Paint into this DC
    RECT rcWin;
    ::GetWindowRect(m_hWnd, &rcWin);
    OffsetRect( &rcWin, -rcWin.left, -rcWin.top );

    HBRUSH hbr = CreateSolidBrush( #000000 ); // black
    // top, left, bottom, right, border
    for(int i=0; i        FrameRect(hdc, &rcWin, hbr);
        InflateRect(&rcWin, -1, -1);       
    }
    ::ReleaseDC(m_hWnd, hdc);
}


參考資料
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 JohnDX 的頭像
    JohnDX

    我要回家想一想~

    JohnDX 發表在 痞客邦 留言(0) 人氣()