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.

46 lines
1.2 KiB

  1. //-----------------------------------------------------------------------------
  2. // File: flexMsgBox.h
  3. //
  4. // Desc: Implements a message box control similar to Windows message box
  5. // without the button. CFlexMsgBox is derived from CFlexWnd.
  6. //
  7. // Copyright (C) 1999-2000 Microsoft Corporation. All Rights Reserved.
  8. //-----------------------------------------------------------------------------
  9. #ifndef __FLEXMsgBox_H__
  10. #define __FLEXMsgBox_H__
  11. class CFlexMsgBox : public CFlexWnd
  12. {
  13. LPTSTR m_tszText; // Text string of the message
  14. COLORREF m_rgbText, m_rgbBk, m_rgbSelText, m_rgbSelBk, m_rgbFill, m_rgbLine;
  15. HFONT m_hFont;
  16. BOOL m_bSent;
  17. HWND m_hWndNotify;
  18. void SetRect();
  19. void InternalPaint(HDC hDC);
  20. RECT GetRect(const RECT &);
  21. RECT GetRect();
  22. void Notify(int code);
  23. public:
  24. CFlexMsgBox();
  25. virtual ~CFlexMsgBox();
  26. HWND Create(HWND hParent, const RECT &rect, BOOL bVisible);
  27. void SetNotify(HWND hWnd) { m_hWndNotify = hWnd; }
  28. void SetText(LPCTSTR tszText);
  29. // cosmetics
  30. void SetFont(HFONT hFont);
  31. void SetColors(COLORREF text, COLORREF bk, COLORREF seltext, COLORREF selbk, COLORREF fill, COLORREF line);
  32. virtual void OnPaint(HDC hDC);
  33. };
  34. #endif