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.

47 lines
624 B

  1. typedef struct _GAUGEVALS {
  2. int curValue;
  3. int minValue;
  4. int maxValue;
  5. POINT base;
  6. POINT top;
  7. HWND handle;
  8. struct _GAUGEVALS *next;
  9. } GAUGEVALS, *PGAUGEVALS;
  10. BOOL
  11. RegisterGauge(
  12. HINSTANCE hInstance
  13. );
  14. HWND
  15. CreateGauge(
  16. HWND parent,
  17. HINSTANCE hInstance,
  18. INT x,
  19. INT y,
  20. INT width,
  21. INT height,
  22. INT minVal,
  23. INT maxVal
  24. );
  25. VOID
  26. DestroyGauge(
  27. HWND GaugeHandle
  28. );
  29. LRESULT CALLBACK GaugeWndProc(
  30. HWND hWnd,
  31. UINT message,
  32. WPARAM uParam,
  33. LPARAM lParam
  34. );
  35. VOID
  36. UpdateGauge(
  37. HWND handle,
  38. INT value
  39. );
  40.