home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
MSVCPUZL.ZIP
/
MAINFRM.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-10
|
2KB
|
69 lines
// mainfrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "puzzle.h"
#include "mainfrm.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMainFrame construction/destruction
CMainFrame::CMainFrame()
{
// TODO: add member initialization code here
}
CMainFrame::~CMainFrame()
{
}
/////////////////////////////////////////////////////////////////////////////
// CMainFrame diagnostics
#ifdef _DEBUG
void CMainFrame::AssertValid() const
{
CFrameWnd::AssertValid();
}
void CMainFrame::Dump(CDumpContext& dc) const
{
CFrameWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainFrame message handlers
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
RECT rect={0,0,200,250}; //Desired client rect size
if ( !CFrameWnd::PreCreateWindow(cs))
return FALSE;
cs.style = WS_CAPTION | WS_MINIMIZEBOX | WS_SYSMENU | WS_VISIBLE;
//CalcWindowRect(&rect); //Calculate total window size
::AdjustWindowRect(&rect, cs.style, TRUE);
cs.cx = rect.right-rect.left;
cs.cy = rect.bottom-rect.top;
cs.x = CW_USEDEFAULT;
cs.y = CW_USEDEFAULT;
return TRUE;
}