News | Articles | Libraries | Developer Tools | Books | Forum Links | Search   
Sections:
 

QA: How to make dialogs not full screen?

By Vassili Philippov, February 25, 2001.
Print version

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

Discuss

Discuss this article. Here you can write your comments and read comments of other developers.
Rate this article:     Poor Excellent    
 12345 
© 2001-2005 Pocket PC Developer Network, a division of Spb Software House