home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / tstcon / tcsplit.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  979 b   |  45 lines

  1. // TCSplitter.Cpp : implementation file
  2. //
  3.  
  4. #include "StdAfx.H"
  5. #include "TestCon.H"
  6.  
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CTCSplitter
  15.  
  16. IMPLEMENT_DYNAMIC( CTCSplitter, CSplitterWnd )
  17.  
  18. CTCSplitter::CTCSplitter()
  19. {
  20. }
  21.  
  22. CTCSplitter::~CTCSplitter()
  23. {
  24. }
  25.  
  26. BEGIN_MESSAGE_MAP(CTCSplitter, CSplitterWnd)
  27.     //{{AFX_MSG_MAP(CTCSplitter)
  28.         // NOTE - the ClassWizard will add and remove mapping macros here.
  29.     //}}AFX_MSG_MAP
  30.    ON_WM_CTLCOLOR()
  31. END_MESSAGE_MAP()
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CTCSplitter message handlers
  35.  
  36. HBRUSH CTCSplitter::OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor )
  37. {
  38.    if( nCtlColor == CTLCOLOR_STATIC )
  39.    {
  40.       return( GetSysColorBrush( COLOR_WINDOW ) );
  41.    }
  42.  
  43.    return( CSplitterWnd::OnCtlColor( pDC, pWnd, nCtlColor ) );
  44. }
  45.