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.

81 lines
2.6 KiB

  1. //////////////////////////////////////////////////////////////////
  2. // File : CEXRES.H
  3. // Purpose : Resource processing class
  4. //
  5. //
  6. // Date : Fri Jul 31 17:21:25 1998
  7. // Author : ToshiaK
  8. //
  9. // Copyright(c) 1995-1998, Microsoft Corp. All rights reserved
  10. //////////////////////////////////////////////////////////////////
  11. #ifndef __C_EXTENDED_RESOURCE_H__
  12. #define __C_EXTENDED_RESOURCE_H__
  13. #ifdef UNDER_CE // Windows CE macro
  14. #undef DialogBoxParamA
  15. #undef DialogBoxParamW
  16. #undef CreateDialogParamA
  17. #undef CreateDialogParamW
  18. typedef VOID MENUTEMPLATE;
  19. #endif // UNDER_CE
  20. class CExres
  21. {
  22. public:
  23. static INT LoadStringW(LANGID lgid,
  24. HINSTANCE hInst,
  25. UINT uID,
  26. LPWSTR lpBuffer,
  27. INT nBufferMax);
  28. static INT LoadStringA(INT codePage,
  29. LANGID lcid,
  30. HINSTANCE hInst,
  31. INT uID,
  32. LPSTR lpBuffer,
  33. INT nBufferMax);
  34. static int DialogBoxParamA(LANGID lgid,
  35. HINSTANCE hInstance,
  36. LPCTSTR lpTemplateName,
  37. HWND hWndParent,
  38. DLGPROC lpDialogFunc,
  39. LPARAM dwInitParam);
  40. static int DialogBoxParamW(LANGID lgid,
  41. HINSTANCE hInstance,
  42. LPCWSTR lpTemplateName,
  43. HWND hWndParent,
  44. DLGPROC lpDialogFunc,
  45. LPARAM dwInitParam);
  46. static HWND CreateDialogParamA(LANGID lgid,
  47. HINSTANCE hInstance,
  48. LPCTSTR lpTemplateName,
  49. HWND hWndParent,
  50. DLGPROC lpDialogFunc,
  51. LPARAM dwInitParam);
  52. static HWND CreateDialogParamW(LANGID lgid,
  53. HINSTANCE hInstance,
  54. LPCWSTR lpTemplateName,
  55. HWND hWndParent,
  56. DLGPROC lpDialogFunc,
  57. LPARAM dwInitParam);
  58. static DLGTEMPLATE * LoadDialogTemplateA(LANGID lgid,
  59. HINSTANCE hInstance,
  60. LPCSTR pchTemplate);
  61. #ifdef UNDER_CE // Windows CE always UNICODE
  62. static DLGTEMPLATE * LoadDialogTemplate(LANGID lgid,
  63. HINSTANCE hInstance,
  64. LPCTSTR pchTemplate);
  65. #endif // UNDER_CE
  66. static MENUTEMPLATE* LoadMenuTemplateA(LANGID lgid,
  67. HINSTANCE hInstance,
  68. LPCSTR pchTemplate);
  69. static HMENU LoadMenuA(LANGID lgid,
  70. HINSTANCE hInstance,
  71. LPCTSTR lpMenuName );
  72. #ifdef UNDER_CE // Windows CE always UNICODE
  73. static HMENU LoadMenu(LANGID lgid,
  74. HINSTANCE hInstance,
  75. LPCTSTR lpMenuName);
  76. #endif // UNDER_CE
  77. static VOID SetDefaultGUIFont(HWND hwndDlg);
  78. private:
  79. static INT SetDefaultGUIFontRecursive(HWND hwndParent);
  80. };
  81. #endif //__C_EXTENDED_RESOURCE_H__