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.

57 lines
1.6 KiB

  1. #ifndef _UTIL_H
  2. #define _UTIL_H
  3. // #include "msoert.h"
  4. // forward references
  5. typedef struct tagNMTTDISPINFOA NMTTDISPINFOA, FAR *LPNMTTDISPINFOA;
  6. #ifndef LPTOOLTIPTEXTOE
  7. #define LPTOOLTIPTEXTOE LPNMTTDISPINFOA
  8. #endif
  9. HRESULT HrLoadStreamFileFromResourceW(ULONG uCodePage, LPCSTR lpszResourceName, LPSTREAM *ppstm);
  10. HMENU LoadPopupMenu(UINT id);
  11. void ProcessTooltips(LPTOOLTIPTEXTOE lpttt);
  12. INT PointSizeToHTMLSize(INT iPointSize);
  13. typedef struct BGSOUNDDLG_tag
  14. {
  15. WCHAR wszUrl[MAX_PATH]; // we clip this URL to MAX_PATH
  16. int cRepeat;
  17. } BGSOUNDDLG, *PBGSOUNDDLG;
  18. typedef struct tagPARAPROP
  19. {
  20. struct {
  21. INT iID;
  22. BOOL bChanged;
  23. }group[3];
  24. } PARAPROP,*LPPARAPROP;
  25. HRESULT DoBackgroundSoundDlg(HWND hwnd, PBGSOUNDDLG pBgSoundDlg);
  26. INT_PTR CALLBACK FmtParaDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  27. BOOL CanEditBiDi(void);
  28. // Context-sensitive Help utility.
  29. typedef struct _tagHELPMAP
  30. {
  31. DWORD id;
  32. DWORD hid;
  33. } HELPMAP, *LPHELPMAP;
  34. BOOL OnContextHelp(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, HELPMAP const * rgCtxMap);
  35. #define AthMessageBox(hwnd, pszT, psz1, psz2, fu) MessageBoxInst(g_hLocRes, hwnd, pszT, psz1, psz2, fu)
  36. #define AthMessageBoxW(hwnd, pwszT, pwsz1, pwsz2, fu) MessageBoxInstW(g_hLocRes, hwnd, pwszT, pwsz1, pwsz2, fu, LoadStringWrapW, MessageBoxWrapW)
  37. #define AthFileTimeToDateTimeW(pft, wszDateTime, cch, dwFlags) \
  38. CchFileTimeToDateTimeW(pft, wszDateTime, cch, dwFlags, \
  39. GetDateFormatWrapW, GetTimeFormatWrapW, GetLocaleInfoWrapW)
  40. HRESULT AthFixDialogFonts(HWND hwnd);
  41. #endif // _UTIL_H