Click here to Skip to main content
15,892,537 members
Articles / Mobile Apps

Views in Full Screen Mode

Rate me:
Please Sign up or sign in to vote.
4.76/5 (34 votes)
19 Feb 20052 min read 99.2K   2.5K   72  
Viewing windows in full screen mode.
// FullScreenView.h : interface of the CFullScreenView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_FULLSCREENVIEW_H__C43F578A_08D9_4D9D_9C27_78888CF836B9__INCLUDED_)
#define AFX_FULLSCREENVIEW_H__C43F578A_08D9_4D9D_9C27_78888CF836B9__INCLUDED_

#include "MainFrm.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CFullScreenView : public CScrollView
{
protected: // create from serialization only
	CFullScreenView();
	DECLARE_DYNCREATE(CFullScreenView)

// Attributes
public:
	CFullScreenDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFullScreenView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CFullScreenView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	boolean isFull;
	CWnd *saveParent;
protected:
	COLORREF background;
	COLORREF text;
	CMenu *ContextMenu;

// Generated message map functions
protected:
	//{{AFX_MSG(CFullScreenView)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnChangeBackgroundColor();
	afx_msg void OnFullScreenMode();
	afx_msg void OnUpdateFullScreenMode(CCmdUI* pCmdUI);
	afx_msg void OnChangeTextColor();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in FullScreenView.cpp
inline CFullScreenDoc* CFullScreenView::GetDocument()
   { return (CFullScreenDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FULLSCREENVIEW_H__C43F578A_08D9_4D9D_9C27_78888CF836B9__INCLUDED_)

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer
Poland Poland
I'm a student of Electrical Engineering
in Krakow (POLAND).My interest is computer
analysis in circuit theory and so far I have
been using MFC to build simple programs that
estimates solutions of circuits.
Live in Tarnow-Zdroj (of course) Smile | :)

Comments and Discussions