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.

115 lines
2.6 KiB

  1. /**************************************************/
  2. /* */
  3. /* Character List (Referrence Dialog) */
  4. /* */
  5. /* */
  6. /* Copyright (c) 1997-1999 Microsoft Corporation. */
  7. /**************************************************/
  8. class CRefListFrame :public CStatic
  9. {
  10. // member function
  11. public:
  12. CRefListFrame();
  13. ~CRefListFrame();
  14. private:
  15. void DrawConcave( CDC *dc, CRect rect);
  16. protected:
  17. //{{AFX_MSG(CRefListFrame)
  18. afx_msg void OnPaint();
  19. //}}AFX_MSG
  20. DECLARE_MESSAGE_MAP()
  21. };
  22. class CRefInfoFrame :public CStatic
  23. {
  24. // member function
  25. public:
  26. CRefInfoFrame();
  27. ~CRefInfoFrame();
  28. private:
  29. void DrawConcave( CDC *dc, CRect rect);
  30. protected:
  31. //{{AFX_MSG(CRefInfoFrame)
  32. afx_msg void OnPaint();
  33. //}}AFX_MSG
  34. DECLARE_MESSAGE_MAP()
  35. };
  36. class CRefrList : public CEdit
  37. {
  38. DECLARE_DYNCREATE( CRefrList)
  39. // Member function
  40. public:
  41. CRefrList();
  42. ~CRefrList();
  43. public:
  44. BOOL CodeButtonClicked();
  45. void SetCodeRange();
  46. void ResetParam();
  47. void CalcCharSize();
  48. private:
  49. int CheckCharType( WORD Code);
  50. int GetBarPosition( WORD Code);
  51. WORD CalculateCode( WORD Start, WORD End);
  52. WORD GetPlusCode( WORD Code, int ScrollNum);
  53. WORD GetMinusCode( WORD Code, int ScrollNum);
  54. WORD GetPlusCodeKey( WORD Code, int ScrollNum);
  55. WORD GetMinusCodeKey( WORD Code, int ScrollNum);
  56. WORD GetCodeScrPos( int Pos);
  57. BOOL IsCheckedCode( WORD CodeStock);
  58. BOOL IsCorrectChar( UINT i, UINT j);
  59. void SearchKeyPosition( BOOL Flg);
  60. void DrawConcave( CDC *dc, CRect rect, BOOL PtIn);
  61. // Member parameter
  62. public:
  63. CPoint LButtonPt;
  64. WORD ViewStart;
  65. WORD ViewEnd;
  66. WORD SelectCode;
  67. short ScrlBarPos;
  68. CFont SysFFont;
  69. CFont CharFont;
  70. CFont ViewFont;
  71. CSize CharSize;
  72. int PointSize;
  73. LOGFONT rLogFont;
  74. LOGFONT cLogFont;
  75. DWORD dwCodePage;
  76. private:
  77. CRect CodeListRect;
  78. CPoint WritePos;
  79. CSize FixSize;
  80. WORD StartCode;
  81. WORD EndCode;
  82. WORD BottomCode;
  83. int xSpace;
  84. int ySpace;
  85. int CHN;
  86. BOOL FocusFlag;
  87. protected:
  88. //{{AFX_MSG(CRefrList)
  89. afx_msg void OnPaint();
  90. afx_msg void OnVScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  91. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  92. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  93. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  94. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  95. afx_msg void OnSetFocus(CWnd* pOldWnd);
  96. afx_msg void OnKillFocus(CWnd* pNewWnd);
  97. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  98. //}}AFX_MSG
  99. DECLARE_MESSAGE_MAP()
  100. };