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

  1. // chkbkfrm.cpp : implementation of the CCheckBookFrame class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13.  
  14. #include "stdafx.h"
  15. #include "chkbkfrm.h"
  16.  
  17. IMPLEMENT_DYNCREATE(CCheckBookFrame, CMDIChildWnd)
  18.  
  19. BOOL CCheckBookFrame::PreCreateWindow(CREATESTRUCT& cs)
  20. {
  21.     // By turning off the default MFC-defined FWS_ADDTOTITLE style,
  22.     // the framework will use first string in the document template
  23.     // STRINGTABLE resource instead of the document name.
  24.  
  25.     cs.style &= ~(LONG)FWS_ADDTOTITLE;
  26.     return CMDIChildWnd::PreCreateWindow(cs);
  27. }
  28.