QA: How to make dialogs not full screen?

Vassili Philippov (vasja@spbteam.com), February 25, 2001.

Question

When I create a dialog using MFC it is shown stretched to the whole screen. How can I create a not full screen dialog like in Windows 95?

Answer

Set m_bFullScreen CDialog member to FALSE before dialog creation.

For example you can show dialog using the following way:

CNfsDlg dlg; dlg.m_bFullScreen = FALSE; dlg.DoModal();

Or you can set m_bFullScreen member to FALSE in the constructor of your dialog. CDialog creates a full screen dialog in OnInitDialog method using calling of SHInitDialog function if m_bFullScreen dialog is set to TRUE.

Not full screen dialog