home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / SHELL.PAK / MDICHILD.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.5 KB  |  69 lines

  1. //----------------------------------------------------------------------------
  2. //  Project Shell
  3. //  Borland International
  4. //  Copyright ⌐ 1995, 1996 Borland International. All Rights Reserved.
  5. //
  6. //  SUBSYSTEM:    shell.exe Application
  7. //  FILE:         mdichild.cpp
  8. //  AUTHOR:       The OWL Team
  9. //
  10. //  OVERVIEW
  11. //  ~~~~~~~~
  12. //  Source file for implementation of TShellMDIChild (TMDIChild).
  13. //
  14. //----------------------------------------------------------------------------
  15.  
  16. #include <owl/pch.h>
  17.  
  18. #include "shellapp.h"
  19. #include "shellwin.h"
  20. #include "mdichild.h"
  21.  
  22.  
  23. //{{TShellMDIChild Implementation}}
  24.  
  25.  
  26. //--------------------------------------------------------
  27. // TShellMDIChild
  28. // ~~~~~~~~~~
  29. // Construction/Destruction handling.
  30. //
  31. TShellMDIChild::TShellMDIChild(TMDIClient& parent, const char far* title, TWindow* clientWnd,
  32.                              TShellItem* item, bool shrinkToClient, TModule* module)
  33. :
  34.   TMDIChild(parent, title, !clientWnd ? new TShellWindow(0, item, "") : clientWnd,
  35.             shrinkToClient, module)
  36. {
  37.   // INSERT>> Your constructor code here.
  38.  
  39. }
  40.  
  41.  
  42. TShellMDIChild::~TShellMDIChild()
  43. {
  44.   Destroy();
  45.  
  46.   // INSERT>> Your destructor code here.
  47.  
  48. }
  49.  
  50. // SetIcon
  51. // ~~~~~~~
  52. //
  53. bool TShellMDIChild::SetIcon(HICON icon)
  54. {
  55.   if (IsWindow())
  56.     SendMessage(WM_SETICON, true, (LPARAM)icon);
  57.   return true;
  58. }
  59.  
  60. // SetIconSm
  61. // ~~~~~~~~~
  62. //
  63. bool TShellMDIChild::SetIconSm(HICON icon)
  64. {
  65.   if (IsWindow())
  66.     SendMessage(WM_SETICON, false, (LPARAM)icon);
  67.   return true;
  68. }
  69.