|
/*************************************************************************
FILE : PersistSDIFrame.cpp
Author : Stefan Chekanov (stefant@iname.com)
Description: Implementation of CPersistSDIFrame class used to make SDI frames
persistent.
Copyright(c) 1998,1999,2000
by Stefan Chekanov (stefant@iname.com)
This code may be used in compiled form in any way you desire. This
file may be redistributed unmodified by any means PROVIDING it is
not sold for profit without the authors written consent, and
providing that this notice and the authors name is included. If
the source code in this file is used in any commercial application
then a simple email to the author would be nice.
This file is provided "as is" with no expressed or implied warranty.
The author accepts no liability if it causes any damage.
*************************************************************************/
/* # Revisions # */
///////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "PersistSDIFrame.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
///////////////////////////////////////////////////////////////
// CPersistSDIFrame
IMPLEMENT_DYNAMIC(CPersistSDIFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CPersistSDIFrame, CFrameWnd)
//{{AFX_MSG_MAP(CPersistSDIFrame)
ON_WM_DESTROY()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
///////////////////////////////////////////////////////////////
CPersistSDIFrame::CPersistSDIFrame()
{
m_persistImpl.SetWindow( this );
m_persistImpl.SetProfileHeading( "Main Frame" );
}
///////////////////////////////////////////////////////////////
CPersistSDIFrame::~CPersistSDIFrame()
{
}
///////////////////////////////////////////////////////////////
void CPersistSDIFrame::ActivateFrame(int nCmdShow)
{
m_persistImpl.Load();
CFrameWnd::ActivateFrame( m_persistImpl.getCmdShow() );
}
///////////////////////////////////////////////////////////////
void CPersistSDIFrame::OnDestroy()
{
m_persistImpl.Save();
CFrameWnd::OnDestroy();
}
///////////////////////////////////////////////////////////////
|
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.
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
Stefan does programming since his early ages more than 30 years ago. Later he began programming at his work and now he is very happy to work his hobby. He owns a Master's degree in Computer Science.
During his professional career, Stefan has worked with many technologies. His programming experience includes C/C++, Java, C#, PHP, JavaScript, MFC, ATL, ASP, ASP.NET, TCP/IP, SQL. He has worked with different operating systems: Windows, Linux, Mac OS X, iOS, Android, Solaris, FreeBSD, NetBSD and QNX.
Currently his professional interests are in building large scale distributed systems that operate over the Internet. This involves building server components as well as developing system level software.
More information about his current work can be found here:
brosix.com - Enterprise Instant Messaging
Stefan is based in Plovdiv, Bulgaria. It is a very nice and peaceful place combined with an enjoyable weather.
Stefan has a wife and 2 children. He likes in his spear time to travel with his family to see new and interesting places.