home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 November / CMCD1104.ISO / Software / Shareware / Programare / skincraft / SkinCrafter_v1.4.12_Demo.msi / _49E29CB9A65AABBF653C1037E1AA74B6 / _D954D4F34F2C4371B24B98C6B6519041 < prev    next >
Encoding:
Text File  |  2003-04-10  |  1.1 KB  |  58 lines

  1. // ChildView.cpp : implementation of the CChildView class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "MDIDemo.h"
  6. #include "ChildView.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CChildView
  16.  
  17. CChildView::CChildView()
  18. {
  19. }
  20.  
  21. CChildView::~CChildView()
  22. {
  23. }
  24.  
  25.  
  26. BEGIN_MESSAGE_MAP(CChildView,CWnd )
  27.     //{{AFX_MSG_MAP(CChildView)
  28.     ON_WM_PAINT()
  29.     //}}AFX_MSG_MAP
  30. END_MESSAGE_MAP()
  31.  
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CChildView message handlers
  35.  
  36. BOOL CChildView::PreCreateWindow(CREATESTRUCT& cs) 
  37. {
  38.     if (!CWnd::PreCreateWindow(cs))
  39.         return FALSE;
  40.  
  41.     cs.dwExStyle |= WS_EX_CLIENTEDGE;
  42.     cs.style &= ~WS_BORDER;
  43.     cs.lpszClass = AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW|CS_DBLCLKS, 
  44.         ::LoadCursor(NULL, IDC_ARROW), HBRUSH(COLOR_WINDOW+1), NULL);
  45.  
  46.     return TRUE;
  47. }
  48.  
  49. void CChildView::OnPaint() 
  50. {
  51.     CPaintDC dc(this); // device context for painting
  52.     
  53.     // TODO: Add your message handler code here
  54.     
  55.     // Do not call CWnd::OnPaint() for painting messages
  56. }
  57.  
  58.