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.

49 lines
1.2 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 1996.
  5. //
  6. // File: util.hxx
  7. //
  8. // Contents: Miscellaneous helper functions
  9. //
  10. // History: 4-30-1997 DavidMun Created
  11. //
  12. //---------------------------------------------------------------------------
  13. #ifndef __UTIL_HXX_
  14. #define __UTIL_HXX_
  15. #define UpDown_SetRange(hCtrl, min, max) (VOID)SendMessage((hCtrl), UDM_SETRANGE, 0, (LPARAM)MAKELONG((SHORT)(max), (SHORT)(min)))
  16. #define UpDown_SetPos(hCtrl, sPos) (SHORT)SendMessage((hCtrl), UDM_SETPOS, 0, (LPARAM) MAKELONG((short) sPos, 0))
  17. #define UpDown_GetPos(hCtrl) (SHORT)SendMessage((hCtrl), UDM_GETPOS, 0, 0)
  18. BOOL
  19. IsDialogClass(
  20. HWND hwnd);
  21. HRESULT
  22. LoadStr(
  23. ULONG ids,
  24. LPTSTR tszBuf,
  25. ULONG cchBuf,
  26. LPCTSTR tszDefault = NULL);
  27. #ifdef WIZARD97
  28. BOOL
  29. Is256ColorSupported();
  30. #else
  31. HBITMAP
  32. LoadResourceBitmap(
  33. ULONG idBitmap,
  34. HPALETTE *phPalette);
  35. #endif // WIZARD97
  36. VOID
  37. FillInStartDateTime(
  38. HWND hwndDatePick,
  39. HWND hwndTimePick,
  40. TASK_TRIGGER *pTrigger);
  41. #endif // __UTIL_HXX_