Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
459 B

  1. // DialErr.cpp : Implementation of CDialErr
  2. #include "stdafx.h"
  3. #include "icwhelp.h"
  4. #include "DialErr.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CDialErr
  7. HRESULT CDialErr::OnDraw(ATL_DRAWINFO& di)
  8. {
  9. RECT& rc = *(RECT*)di.prcBounds;
  10. Rectangle(di.hdcDraw, rc.left, rc.top, rc.right, rc.bottom);
  11. DrawText(di.hdcDraw, _T("ATL 2.0"), -1, &rc, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
  12. return S_OK;
  13. }