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.

70 lines
1.9 KiB

  1. /****************************************************************************
  2. *
  3. * TTSPropertiesDialog.h
  4. *
  5. * TTS Engine Advanced Properties Dialog handler
  6. *
  7. * Owner: aaronhal
  8. *
  9. * Copyright 2000 Microsoft Corporation All Rights Reserved.
  10. *
  11. *****************************************************************************/
  12. #pragma once
  13. #include "spunicode.h"
  14. //--- Includes --------------------------------------------------------------
  15. //--- Forward and External Declarations -------------------------------------
  16. //--- TypeDef and Enumeration Declarations ----------------------------------
  17. typedef enum SEPARATOR_AND_DECIMAL
  18. {
  19. PERIOD_COMMA = (1L << 0),
  20. COMMA_PERIOD = (1L << 1)
  21. } SEPARATOR_AND_DECIMAL;
  22. typedef enum SHORT_DATE_ORDER
  23. {
  24. MONTH_DAY_YEAR = (1L << 0),
  25. DAY_MONTH_YEAR = (1L << 1),
  26. YEAR_MONTH_DAY = (1L << 2)
  27. } SHORT_DATE_ORDER;
  28. //--- Constants -------------------------------------------------------------
  29. //--- Class, Struct and Union Definitions -----------------------------------
  30. class CTTSPropertiesDialog
  31. {
  32. public:
  33. CTTSPropertiesDialog( HINSTANCE hInstance, HWND hwndParent );
  34. HRESULT Run( void );
  35. private:
  36. static INT_PTR CALLBACK DlgProc(HWND, UINT, WPARAM, LPARAM);
  37. static HRESULT InitDialog( HWND hDlg, LPARAM lParam );
  38. static CTTSPropertiesDialog * This( HWND );
  39. void UpdateValues( HWND hDlg );
  40. private:
  41. HINSTANCE m_hInstance;
  42. HWND m_hwndParent;
  43. DWORD m_dwSeparatorAndDecimal;
  44. DWORD m_dwShortDateOrder;
  45. CComPtr<ISpObjectToken> m_cpEngineToken;
  46. };
  47. //--- Function Declarations -------------------------------------------------
  48. //--- Inline Function Definitions -------------------------------------------
  49. inline CTTSPropertiesDialog * CTTSPropertiesDialog::This( HWND hwnd )
  50. {
  51. return (CTTSPropertiesDialog *)g_Unicode.GetWindowLongPtr(hwnd, GWLP_USERDATA);
  52. }