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.

67 lines
1.6 KiB

  1. //Copyright (c) 1997-2000 Microsoft Corporation
  2. #ifndef _INC_SELECT_H
  3. #define _INC_SELECT_H
  4. class WizardPage;
  5. void DrawHilight(HWND hWnd, LPDRAWITEMSTRUCT ldi);
  6. // CIconSizePg
  7. class CIconSizePg : public WizardPage
  8. {
  9. public:
  10. CIconSizePg(LPPROPSHEETPAGE ppsp);
  11. protected:
  12. LRESULT OnInitDialog(HWND hwnd, WPARAM wParam, LPARAM lParam);
  13. LRESULT OnDrawItem(HWND hwnd, WPARAM wParam, LPARAM lParam);
  14. LRESULT OnTimer( HWND hwnd, WPARAM wParam, LPARAM lParam );
  15. LRESULT OnPSN_SetActive(HWND hwnd, INT idCtl, LPPSHNOTIFY pnmh);
  16. private:
  17. void Draw(LPDRAWITEMSTRUCT ldi, int i);
  18. inline void SetFocussedItem(int m_nCurrentHilight);
  19. inline void InvalidateRects(int PrevHilight);
  20. LRESULT SelectionChanged(int nNewSelection);
  21. UINT GetCtrlID(int);
  22. int m_nCountValues;
  23. int m_rgnValues[MAX_DISTINCT_VALUES];
  24. int m_nCurValueIndex;
  25. int m_nCurrentHilight;
  26. BOOL syncInit;
  27. UINT uIDEvent;
  28. };
  29. // CScrollBarPg
  30. class CScrollBarPg : public WizardPage
  31. {
  32. public:
  33. CScrollBarPg(LPPROPSHEETPAGE ppsp);
  34. protected:
  35. LRESULT OnInitDialog(HWND hwnd, WPARAM wParam, LPARAM lParam);
  36. LRESULT OnDrawItem(HWND hwnd, WPARAM wParam, LPARAM lParam);
  37. LRESULT OnTimer( HWND hwnd, WPARAM wParam, LPARAM lParam );
  38. LRESULT OnPSN_SetActive(HWND hwnd, INT idCtl, LPPSHNOTIFY pnmh);
  39. private:
  40. void Draw(LPDRAWITEMSTRUCT ldi, int i);
  41. inline void SetFocussedItem(int m_nCurrentHilight);
  42. inline void InvalidateRects(int PrevHilight);
  43. LRESULT SettingChanged(int sel);
  44. UINT GetCtrlID(int);
  45. int m_nCountValues;
  46. int m_rgnValues[MAX_DISTINCT_VALUES];
  47. int m_nCurValueIndex;
  48. int m_nCurrentHilight;
  49. BOOL syncInit;
  50. UINT uIDEvent;
  51. };
  52. #endif // _INC_SELECT_H