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.

84 lines
2.3 KiB

  1. //
  2. // propdisplay.h: Display prop pg
  3. // Tab B
  4. //
  5. // Copyright Microsoft Corportation 2000
  6. // (nadima)
  7. //
  8. #ifndef _propdisplay_h_
  9. #define _propdisplay_h_
  10. #include "sh.h"
  11. #include "tscsetting.h"
  12. #define COLOR_STRING_MAXLEN 32
  13. #define MAX_SCREEN_RES_OPTIONS 10
  14. typedef struct tag_COLORSTRINGMAP
  15. {
  16. int bpp;
  17. int resID;
  18. //resource ID of the corresponding color bitmap
  19. int bitmapResID;
  20. int bitmapLowColorResID;
  21. TCHAR szString[COLOR_STRING_MAXLEN];
  22. } COLORSTRINGMAP, *PCOLORSTRINGMAP;
  23. typedef struct tagSCREENRES
  24. {
  25. int width;
  26. int height;
  27. } SCREENRES, *PSCREENRES;
  28. class CPropDisplay
  29. {
  30. public:
  31. CPropDisplay(HINSTANCE hInstance, CTscSettings* pTscSet, CSH* pSh);
  32. ~CPropDisplay();
  33. static CPropDisplay* CPropDisplay::_pPropDisplayInstance;
  34. static INT_PTR CALLBACK StaticPropPgDisplayDialogProc (HWND hwndDlg,
  35. UINT uMsg,
  36. WPARAM wParam,
  37. LPARAM lParam);
  38. void SetTabDisplayArea(RECT& rc) {_rcTabDispayArea = rc;}
  39. private:
  40. //Local resources tab
  41. INT_PTR CALLBACK PropPgDisplayDialogProc (HWND hwndDlg,
  42. UINT uMsg,
  43. WPARAM wParam,
  44. LPARAM lParam);
  45. //
  46. // Tab property page helpers
  47. //
  48. BOOL LoadDisplayourcesPgStrings();
  49. #ifndef OS_WINCE
  50. BOOL OnUpdateResTrackBar(HWND hwndPropPage);
  51. #endif
  52. BOOL OnUpdateColorCombo(HWND hwndPropPage);
  53. void InitColorCombo(HWND hwndPropPage);
  54. void InitScreenResTable();
  55. private:
  56. CTscSettings* _pTscSet;
  57. CSH* _pSh;
  58. RECT _rcTabDispayArea;
  59. HINSTANCE _hInstance;
  60. //localized 'x by x pixels'
  61. TCHAR _szScreenRes[SH_SHORT_STRING_MAX_LENGTH];
  62. //localized 'Fullscreen'
  63. TCHAR _szFullScreen[SH_SHORT_STRING_MAX_LENGTH];
  64. int _numScreenResOptions;
  65. SCREENRES _screenResTable[MAX_SCREEN_RES_OPTIONS];
  66. BOOL _fSwitchedColorComboBmp;
  67. };
  68. #endif // _propdisplay_h_