Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.52 KB

frame-window-styles-cpp.md

File metadata and controls

26 lines (17 loc) · 1.52 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Frame-Window Styles (C++)
Frame-Window Styles (C++)
11/04/2016
window styles [MFC]
PreCreateWindow method, setting window styles
windows [MFC], MFC
frame windows [MFC], styles
MFC, frame windows
styles [MFC], windows
fc5058c1-eec8-48d8-9f76-3fc01cfa53f7

Frame-Window Styles (C++)

The frame windows you get with the framework are suitable for most programs, but you can gain additional flexibility by using the advanced functions PreCreateWindow and the MFC global function AfxRegisterWndClass. PreCreateWindow is a member function of CWnd.

If you apply the WS_HSCROLL and WS_VSCROLL styles to the main frame window, they are instead applied to the MDICLIENT window so users can scroll the MDICLIENT area.

If the window's FWS_ADDTOTITLE style bit is set (which it is by default), the view tells the frame window what title to display in the window's title bar based on the view's document name.

What do you want to know more about

See also

Frame Windows