How to change the main frame shape in MFC
C / C++ / MFC
4
Posts
4
Posters
0
Views
1
Watching
-
-
SetWindowLong(m_hWnd, GWL_STYLE, GetWindowLong(m_hWnd, GWL_STYLE) & (~(WS_CAPTION | WS_BORDER))); CRect rect; GetWindowRect(&rect); int w = rect.Width(); int h = rect.Height(); CRgn rgn1; rgn1.CreateEllipticRgn(// Your parameters); SetWindowRgn(static_cast(rgn1.GetSafeHandle()), TRUE); rgn1.Detach(); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_