Source code of Windows XP (NT5)
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.

55 lines
1.1 KiB

  1. /****************************************************************************
  2. *
  3. * FILE: DShowDlg.h
  4. *
  5. * CREATED: Chris Pirich (ChrisPi) 5-6-96
  6. *
  7. ****************************************************************************/
  8. #ifndef _DSHOWDLG_H_
  9. #define _DSHOWDLG_H_
  10. static const int DS_MAX_MESSAGE_LENGTH = 1024; // characters
  11. static const int DS_MAX_TEXT_WIDTH = 320; // pixels
  12. // NOTE: must not conflict with MB_* flags in winuser.h
  13. #define DSD_ALWAYSONTOP 0x01000000L
  14. class CDontShowDlg
  15. {
  16. protected:
  17. HWND m_hwnd;
  18. UINT m_uFlags;
  19. LPTSTR m_pszRegVal;
  20. UINT_PTR m_uMsgId;
  21. RegEntry m_reDontShow;
  22. int m_nWidth;
  23. int m_nHeight;
  24. int m_nTextWidth;
  25. int m_nTextHeight;
  26. BOOL OnMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  27. // Handlers:
  28. BOOL OnOk();
  29. public:
  30. // Methods:
  31. CDontShowDlg( UINT uMsgId,
  32. LPCTSTR pcszRegVal,
  33. UINT uFlags=0);
  34. ~CDontShowDlg() { delete m_pszRegVal; };
  35. INT_PTR DoModal(HWND hwnd);
  36. static INT_PTR CALLBACK DontShowDlgProc( HWND hDlg,
  37. UINT uMsg,
  38. WPARAM wParam,
  39. LPARAM lParam);
  40. };
  41. BOOL FEnableDontShow(LPCTSTR pszKey);
  42. #endif // _DSHOWDLG_H_
  43.