home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 11 Learning / 08 Manslow / MainFrm.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-18  |  1.7 KB  |  69 lines

  1. // MainFrm.cpp : implementation of the CMainFrame class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Tanks.h"
  6.  
  7. #include "MainFrm.h"
  8.  
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CMainFrame
  17.  
  18. IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
  19.  
  20. BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
  21.     //{{AFX_MSG_MAP(CMainFrame)
  22.         // NOTE - the ClassWizard will add and remove mapping macros here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code !
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CMainFrame construction/destruction
  29.  
  30. CMainFrame::CMainFrame()
  31. {
  32.     // TODO: add member initialization code here
  33.     
  34. }
  35.  
  36. CMainFrame::~CMainFrame()
  37. {
  38. }
  39.  
  40. BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
  41. {
  42.     // TODO: Modify the Window class or styles here by modifying
  43.     //  the CREATESTRUCT cs
  44.     //The commented out sections prevent the window being resized, maximised, etc.
  45.     cs.style = WS_OVERLAPPED | WS_CAPTION | FWS_ADDTOTITLE
  46.         /*| WS_THICKFRAME*/ | WS_SYSMENU /*| WS_MINIMIZEBOX /*| WS_MAXIMIZEBOX | WS_MAXIMIZE*/;
  47.  
  48.     return CFrameWnd::PreCreateWindow(cs);
  49. }
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CMainFrame diagnostics
  53.  
  54. #ifdef _DEBUG
  55. void CMainFrame::AssertValid() const
  56. {
  57.     CFrameWnd::AssertValid();
  58. }
  59.  
  60. void CMainFrame::Dump(CDumpContext& dc) const
  61. {
  62.     CFrameWnd::Dump(dc);
  63. }
  64.  
  65. #endif //_DEBUG
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CMainFrame message handlers
  69.