CFrameWnd without border

I'd like to get rid of the default sunken border that CFrameWnd draws into a window (not the resizing one that every WS_OVERLAPPEDWINDOW has). Is that possible?
badea_andreiAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
I am not too sure what you mean. Is the following what you are looking for?

BOOL CMyFrameWnd::PreCreateWindow(CREATESTRUCT& cs)
{
    if (CFrameWnd::PreCreateWindow(cs))
    {
        cs.dwExStyle &= ~WS_EX_CLIENTEDGE;    // remove

        return TRUE;
    }
    else
        return FALSE;
}
0
 
badea_andreiAuthor Commented:
THANKS chensu, that is exactly what I meant. So easy, I should have known it from Win API...
0
All Courses

From novice to tech pro — start learning today.