Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.4 KiB

  1. // MainFrm.cpp : implementation of the CMainFrame class
  2. //
  3. #include "stdafx.h"
  4. #include "MFC_DEMO.h"
  5. #include "MainFrm.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CMainFrame
  13. IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
  14. BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
  15. //{{AFX_MSG_MAP(CMainFrame)
  16. ON_WM_PAINT()
  17. //}}AFX_MSG_MAP
  18. END_MESSAGE_MAP()
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CMainFrame construction/destruction
  21. CMainFrame::CMainFrame()
  22. {
  23. // TODO: add member initialization code here
  24. }
  25. CMainFrame::~CMainFrame()
  26. {
  27. }
  28. BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
  29. {
  30. // TODO: Modify the Window class or styles here by modifying
  31. // the CREATESTRUCT cs
  32. return CFrameWnd::PreCreateWindow(cs);
  33. }
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CMainFrame diagnostics
  36. #ifdef _DEBUG
  37. void CMainFrame::AssertValid() const
  38. {
  39. CFrameWnd::AssertValid();
  40. }
  41. void CMainFrame::Dump(CDumpContext& dc) const
  42. {
  43. CFrameWnd::Dump(dc);
  44. }
  45. #endif //_DEBUG
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CMainFrame message handlers
  48. void CMainFrame::OnPaint()
  49. {
  50. CPaintDC dc(this); // device context for painting
  51. }