Click here to Skip to main content
15,891,721 members
Articles / Desktop Programming / MFC

MFC Smart Frames

Rate me:
Please Sign up or sign in to vote.
1.00/5 (1 vote)
23 May 20022 min read 61.8K   3K   18  
Save window sizes, positions and state for all frames in an MDI MFC Application
#if !defined(AFX_SMDIFRAMEWND_H__BA187822_FBE1_450E_9C75_58CAD43361FF__INCLUDED_)
#define AFX_SMDIFRAMEWND_H__BA187822_FBE1_450E_9C75_58CAD43361FF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SMDIFrameWnd.h : header file
//
//
// James Pullicino
// James@drinkinginthesun.com
//
/////////////////////////////////////////////////////////////////////////////
// CSMDIFrameWnd frame

class CSMDIFrameWnd : public CMDIFrameWnd
{
	DECLARE_DYNCREATE(CSMDIFrameWnd)
protected:
	CSMDIFrameWnd();           // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSMDIFrameWnd)
	public:
	virtual BOOL DestroyWindow();
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CSMDIFrameWnd();

	// Generated message map functions
	//{{AFX_MSG(CSMDIFrameWnd)
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	bool	m_bShowOnce;
};

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

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

#endif // !defined(AFX_SMDIFRAMEWND_H__BA187822_FBE1_450E_9C75_58CAD43361FF__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
Web Developer
United Kingdom United Kingdom
We need to develop some good software for the brain.

Comments and Discussions