Click here to Skip to main content
15,891,864 members
Articles / Mobile Apps / Windows Mobile

A Non Full-Screen Dialog Class for Windows CE

Rate me:
Please Sign up or sign in to vote.
4.92/5 (19 votes)
7 Sep 2002BSD1 min read 109.3K   369   35  
This article describes a non full screen dialog class that does not switch to full screen when the SIP is activated.
// NonFSDialog.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "NonFSDialog.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CNonFSDialog dialog

void CNonFSDialog::init()
{
	m_bFullScreen = FALSE;
}

CNonFSDialog::CNonFSDialog()
{
	init();
}

CNonFSDialog::CNonFSDialog(UINT nIDTemplate, CWnd* pParent)
:CDialog(nIDTemplate, pParent)
{
	init();
}

CNonFSDialog::CNonFSDialog(LPCTSTR lpszTemplateName, CWnd* pParent)
:CDialog(lpszTemplateName, pParent)
{
	init();
}

CNonFSDialog::~CNonFSDialog()
{

}

void CNonFSDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CNonFSDialog)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CNonFSDialog, CDialog)
	//{{AFX_MSG_MAP(CNonFSDialog)
	// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
	ON_WM_ACTIVATE()
	ON_WM_SETTINGCHANGE()

END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CNonFSDialog message handlers

void CNonFSDialog::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
{
	CWnd::OnActivate(nState, pWndOther, bMinimized);
}

void CNonFSDialog::OnSettingChange(UINT uFlags, LPCTSTR lpszSection)
{
	CWnd::OnSettingChange(uFlags, lpszSection);
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The BSD License


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions