home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / mslang / palette / mainfrm.cpp next >
Encoding:
C/C++ Source or Header  |  1994-01-16  |  1.8 KB  |  78 lines

  1. // mainfrm.cpp : implementation of the CMainFrame class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "pal.h"
  6.  
  7. #include "mainfrm.h"
  8.  
  9. #ifdef _DEBUG
  10. #undef THIS_FILE
  11. static char BASED_CODE THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CMainFrame
  16.  
  17. IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
  18.  
  19. BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
  20.     //{{AFX_MSG_MAP(CMainFrame)
  21.         // NOTE - the ClassWizard will add and remove mapping macros here.
  22.         //    DO NOT EDIT what you see in these blocks of generated code !
  23.     ON_WM_CREATE()
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // arrays of IDs used to initialize control bars
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CMainFrame construction/destruction
  32.  
  33. CMainFrame::CMainFrame()
  34. {
  35.     // TODO: add member initialization code here
  36. }
  37.  
  38. CMainFrame::~CMainFrame()
  39. {
  40. }
  41.  
  42.  
  43.  
  44.  
  45. int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
  46. {
  47.     if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
  48.         return -1;
  49.     //Let's get rid of the application's menu
  50.     SetMenu(NULL);
  51.     //Customize the initial size of the main window.
  52.    //Initial size of the window
  53.        MoveWindow(0,0,GetSystemMetrics(SM_CXSCREEN) / 2,GetSystemMetrics(SM_CYSCREEN) / 4);
  54. //    MoveWindow(10,10,500,80);
  55.     
  56.     return 0;
  57. }
  58.  
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61. // CMainFrame diagnostics
  62.  
  63. #ifdef _DEBUG
  64. void CMainFrame::AssertValid() const
  65. {
  66.     CFrameWnd::AssertValid();
  67. }
  68.  
  69. void CMainFrame::Dump(CDumpContext& dc) const
  70. {
  71.     CFrameWnd::Dump(dc);
  72. }
  73.  
  74. #endif //_DEBUG
  75.  
  76. /////////////////////////////////////////////////////////////////////////////
  77. // CMainFrame message handlers
  78.