BkDialog.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // BkDialog.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "BkDialog.h"
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif
  10. CBkDialog::CBkDialog(CWnd* pParent /*=NULL*/)
  11. {
  12. //{{AFX_DATA_INIT(CBkDialog)
  13. // NOTE: the ClassWizard will add member initialization here
  14. //}}AFX_DATA_INIT
  15. }
  16. CBkDialog::CBkDialog(UINT uResourceID, CWnd* pParent)
  17. : CDialog(uResourceID, pParent)
  18. {
  19. }
  20. CBkDialog::CBkDialog(LPCTSTR pszResourceID, CWnd* pParent)
  21. : CDialog(pszResourceID, pParent)
  22. {
  23. }
  24. CBkDialog::~CBkDialog()
  25. {
  26. }
  27. void CBkDialog::DoDataExchange(CDataExchange* pDX)
  28. {
  29. CDialog::DoDataExchange(pDX);
  30. //{{AFX_DATA_MAP(CBkDialog)
  31. // NOTE: the ClassWizard will add DDX and DDV calls here
  32. //}}AFX_DATA_MAP
  33. }
  34. BEGIN_MESSAGE_MAP(CBkDialog, CDialog)
  35. //{{AFX_MSG_MAP(CBkDialog)
  36. ON_WM_ERASEBKGND()
  37. //}}AFX_MSG_MAP
  38. END_MESSAGE_MAP()
  39. BOOL CBkDialog::OnEraseBkgnd(CDC* pDC)
  40. {
  41. CRect rc;
  42. GetClientRect(rc);
  43. m_pDC = pDC;
  44. if (TileBitmap(pDC, rc) == TRUE)
  45. return TRUE;
  46. else
  47. return CDialog::OnEraseBkgnd(pDC);
  48. } // End of OnEraseBkgnd