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.

94 lines
2.7 KiB

  1. // PageIni.h : Declaration of the CPageIni
  2. #if FALSE
  3. /*
  4. #ifndef __PAGEINTERNATIONAL_H_
  5. #define __PAGEINTERNATIONAL_H_
  6. #include "resource.h" // main symbols
  7. #include <atlhost.h>
  8. #include "msconfigstate.h"
  9. #include "pagebase.h"
  10. // main struct for all International info
  11. typedef struct INTL_INFO
  12. {
  13. UINT idsName;
  14. UINT nDOSCodePage;
  15. UINT nCountryCode;
  16. UINT nKeyboardType;
  17. UINT nKeyboardLayout;
  18. TCHAR tszLanguageID[4];
  19. UINT idsCountryFilename;
  20. UINT idsCodePageFilename;
  21. UINT idsKeyboardFilename;
  22. } INTL_INFO;
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CPageIni
  25. class CPageInternational : public CAxDialogImpl<CPageInternational>, public CPageBase
  26. {
  27. public:
  28. CPageInternational();
  29. ~CPageInternational()
  30. {
  31. }
  32. enum { IDD = IDD_PAGEINTERNATIONAL };
  33. BEGIN_MSG_MAP(CPageIni)
  34. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  35. COMMAND_HANDLER(IDC_COMBOLANGUAGES, CBN_SELCHANGE, OnSelchangeCombolanguages)
  36. END_MSG_MAP()
  37. // Handler prototypes:
  38. // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  39. // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  40. // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  41. public:
  42. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  43. LRESULT OnSelchangeCombolanguages(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  44. private:
  45. //-------------------------------------------------------------------------
  46. // Overloaded functions from CPageBase (see CPageBase declaration for the
  47. // usage of these methods).
  48. //-------------------------------------------------------------------------
  49. void CreatePage(HWND hwnd, const RECT & rect)
  50. {
  51. Create(hwnd);
  52. MoveWindow(&rect);
  53. }
  54. CWindow * GetWindow()
  55. {
  56. return ((CWindow *)this);
  57. }
  58. HRESULT Notify(LPCTSTR szFromTab, LPCTSTR szToTab, TabNotify msg);
  59. private:
  60. BOOL m_fInitializing;
  61. BOOL m_fIntlDirty;
  62. // holders for initial settings
  63. TCHAR m_tszCurDOSCodePage[6];
  64. TCHAR m_tszCurCountryCode[6];
  65. TCHAR m_tszCurKeyboardType[6];
  66. TCHAR m_tszCurKeyboardLayout[6];
  67. TCHAR m_tszCurLanguageID[3];
  68. TCHAR m_tszCurCountryFilename[MAX_PATH];
  69. TCHAR m_tszCurCodePageFilename[MAX_PATH];
  70. TCHAR m_tszCurKeyboardFilename[MAX_PATH];
  71. void Intl_SetEditText(HKEY hKey, LPCTSTR ptszRegValue, int ids, LPTSTR ptszCur);
  72. void Intl_SetRegValue(HKEY hKey, int ids, LPCTSTR ptszRegValue);
  73. UINT Intl_GetCPArray(UINT nCodePage, INTL_INFO **ppIntlInfo);
  74. void Intl_GetTextFromNum(UINT nNum, LPTSTR ptszText);
  75. void Intl_GetTextFromIDS(int ids, LPTSTR ptszText);
  76. };
  77. #endif //__PAGEINTERNATIONAL_H_
  78. */
  79. #endif