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.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.2 KB  |  30 lines

  1. // chkbkfrm.h : interface 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. // We override CMDIChildWnd to customize the MDI child's title bar.
  14. // By default the title bar shows the document name.  But we want
  15. // it to instead show the text defined as the first string in
  16. // the document template STRINGTABLE resource.  This string is
  17. // "Book" in the case of the MDI child window that embeds the book
  18. // view, and similarly "Check" for the other MDI child window.  If
  19. // we didn't customize the title bar, the two MDI child windows would
  20. // show MYCHECKS:1 and MYCHECKS:2 if the document were named MYCHECKS.
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23.  
  24. class CCheckBookFrame : public CMDIChildWnd
  25. {
  26.     DECLARE_DYNCREATE(CCheckBookFrame)
  27. protected:
  28.     BOOL PreCreateWindow(CREATESTRUCT& cs);
  29. };
  30.