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.

72 lines
1.5 KiB

  1. //////////////////////////////////////////////////////////////////////////
  2. //
  3. //
  4. // module.h - CHtmlHelpModule
  5. //
  6. //
  7. /*
  8. HTMLHelp specific module class.
  9. * Implements support for satellite DLL resources.
  10. */
  11. #ifndef __CHtmlHelpModule__
  12. #define __CHtmlHelpModule__
  13. // Declaration of CLanguage
  14. #include "language.h"
  15. // array of global window type names
  16. #include "gwintype.h"
  17. //////////////////////////////////////////////////////////////////////////
  18. //
  19. // CHtmlHelpModule
  20. //
  21. class CHtmlHelpModule : public CComModule
  22. {
  23. public:
  24. // Construction
  25. CHtmlHelpModule()
  26. : m_bResourcesInitialized(false)
  27. {
  28. szCurSS[0] = '\0';
  29. m_cp = -1;
  30. }
  31. // Destructor
  32. ~CHtmlHelpModule() {}
  33. public:
  34. //
  35. // Operations
  36. //
  37. // Blocks CComModule's version. This isn't a virtual.
  38. HINSTANCE GetResourceInstance() { InitResources() ; return m_hInstResource; }
  39. UINT GetCodePage() { return ((m_cp == -1)?CP_ACP:m_cp); }
  40. void SetCodePage(UINT cp) { if ( m_cp == -1 ) m_cp = cp; }
  41. private:
  42. // Self initialize the resources
  43. void InitResources() { if (!m_bResourcesInitialized) LoadSatellite(); }
  44. // Load the satellite dll.
  45. void LoadSatellite() ;
  46. private:
  47. //
  48. // Member Variables
  49. //
  50. bool m_bResourcesInitialized;
  51. UINT m_cp;
  52. public:
  53. // UI Language information.
  54. CLanguage m_Language ;
  55. // Contains an array of global window type names.
  56. CGlobalWinTypes m_GlobalWinTypes ;
  57. // Current subset name (?)
  58. TCHAR szCurSS[51];
  59. } ;
  60. #endif //__CHtmlHelpModule__