home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1998 October / dpcb1098.iso / Business / Maxim / MAX5 / data.z / WizPropertySheet.cpp < prev    next >
C/C++ Source or Header  |  1998-05-15  |  4KB  |  112 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // NAME.......: WizPropertySheet.CPP                                               
  3. // PURPOSE....: base class for wizard property sheet
  4. // WRITTEN....: 96/09/27 by Darko Juvan
  5. // DESCRIPTION: 
  6. //
  7. // This code and information is provided "as is" without warranty of any
  8. // kind, either expressed or implied, including but not limited to the
  9. // implied warranties of merchantability and/or fitness for a particular
  10. // purpose..
  11. //
  12. // Copyright (c) 1998  Multiactive Software Inc.  All Rights Reserved.
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15.  
  16. #include "stdafx.h"
  17. #include "resource.h"
  18. #include "WizPropertySheet.h"
  19. #include "TransBlt.h"
  20.  
  21. #ifdef _DEBUG
  22. #define new DEBUG_NEW
  23. #undef THIS_FILE
  24. static char THIS_FILE[] = __FILE__;
  25. #endif
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CWizPropertySheet
  29.  
  30. IMPLEMENT_DYNAMIC(CWizPropertySheet, CPropertySheet)
  31.  
  32. //////////////////////////////////////////////////////////////////////////////
  33. //                        
  34. // FUNCTION...: CWizPropertySheet()
  35. //                                                  
  36. // DESCRIPTION: constructor
  37. //
  38. //////////////////////////////////////////////////////////////////////////////
  39. CWizPropertySheet::CWizPropertySheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  40.     :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  41. {
  42. }
  43.  
  44. //////////////////////////////////////////////////////////////////////////////
  45. //                        
  46. // FUNCTION...: CWizPropertySheet()
  47. //                                                  
  48. // DESCRIPTION: constructor
  49. //
  50. //////////////////////////////////////////////////////////////////////////////
  51. CWizPropertySheet::CWizPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  52.     :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  53. {
  54. }
  55. //////////////////////////////////////////////////////////////////////////////
  56. //                        
  57. // FUNCTION...: CWizPropertySheet()
  58. //                                                  
  59. // DESCRIPTION: constructor
  60. //
  61. //////////////////////////////////////////////////////////////////////////////
  62. CWizPropertySheet::CWizPropertySheet()
  63.     :CPropertySheet()
  64. {
  65.     m_completed = 0;
  66.     m_personal = 0;
  67.     m_alarm = 0;
  68.     m_alarm_time = 0;
  69.     m_iconType = 0; 
  70.     m_bmp.LoadBitmap(IDB_LOGO);
  71.  
  72. }
  73.  
  74. //////////////////////////////////////////////////////////////////////////////
  75. //                        
  76. // FUNCTION...: ~CWizPropertySheet()
  77. //                                                  
  78. // DESCRIPTION: destructor
  79. //
  80. //////////////////////////////////////////////////////////////////////////////
  81. CWizPropertySheet::~CWizPropertySheet()
  82. {
  83.     m_bmp.DeleteObject();
  84. }
  85.  
  86.  
  87. BEGIN_MESSAGE_MAP(CWizPropertySheet, CPropertySheet)
  88.     //{{AFX_MSG_MAP(CWizPropertySheet)
  89.     ON_WM_PAINT()
  90.     //}}AFX_MSG_MAP
  91. END_MESSAGE_MAP()
  92.  
  93. /////////////////////////////////////////////////////////////////////////////
  94. // CWizPropertySheet message handlers
  95.  
  96. //////////////////////////////////////////////////////////////////////////////
  97. //                        
  98. // FUNCTION...: OnPaint()
  99. //                                                  
  100. // DESCRIPTION: MFC
  101. //
  102. //////////////////////////////////////////////////////////////////////////////
  103. void CWizPropertySheet::OnPaint() 
  104. {
  105.     CPaintDC dc(this); // device context for painting
  106.  
  107.     CRect rect;
  108.     GetClientRect(&rect);
  109.     TransparentBlt (dc.GetSafeHdc(), (HBITMAP)m_bmp.GetSafeHandle(), 12, (rect.bottom - 31), RGB(0,0,0));
  110.  
  111. }
  112.