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.

157 lines
3.3 KiB

  1. //
  2. // Copyright (c) 1997-1999 Microsoft Corporation.
  3. //
  4. #ifndef _EUDCLIST_H_
  5. #define _EUDCLIST_H_
  6. /************************************************/
  7. /* */
  8. /* Character List (Update EUDC) */
  9. /* */
  10. /************************************************/
  11. class CViewEdit :public CEdit
  12. {
  13. // member function
  14. public:
  15. CViewEdit();
  16. ~CViewEdit();
  17. CFont EUDCFont;
  18. private:
  19. void DrawConcave( CDC *dc, CRect rect);
  20. protected:
  21. //{{AFX_MSG(CViewEdit)
  22. afx_msg void OnPaint();
  23. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  24. afx_msg void OnSetFocus(CWnd* pOldWnd);
  25. afx_msg void OnKillFocus(CWnd* pNewWnd);
  26. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  27. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  28. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  29. //}}AFX_MSG
  30. DECLARE_MESSAGE_MAP()
  31. };
  32. class CCustomListFrame :public CStatic
  33. {
  34. // member function
  35. public:
  36. CCustomListFrame();
  37. ~CCustomListFrame();
  38. private:
  39. void DrawConcave( CDC *dc, CRect rect);
  40. protected:
  41. //{{AFX_MSG(CCustomListFrame)
  42. afx_msg void OnPaint();
  43. //}}AFX_MSG
  44. DECLARE_MESSAGE_MAP()
  45. };
  46. class CCustomInfoFrame :public CStatic
  47. {
  48. // member function
  49. public:
  50. CCustomInfoFrame();
  51. ~CCustomInfoFrame();
  52. private:
  53. void DrawConcave( CDC *dc, CRect rect);
  54. protected:
  55. //{{AFX_MSG(CCustomInfoFrame)
  56. afx_msg void OnPaint();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. #ifdef BUILD_ON_WINNT
  61. class CColumnHeading :public CWnd
  62. {
  63. // member function
  64. public:
  65. CColumnHeading();
  66. ~CColumnHeading();
  67. protected:
  68. //{{AFX_MSG(CColumnHeading)
  69. afx_msg void OnPaint();
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. // member parameter
  73. public:
  74. CFont SysFFont;
  75. };
  76. #endif //BUILD_ON_WINNT
  77. class CEudcList : public CEdit
  78. {
  79. DECLARE_DYNCREATE( CEudcList)
  80. // Member function
  81. public:
  82. CEudcList();
  83. ~CEudcList();
  84. BOOL CodeButtonClicked();
  85. void SetInitEUDCCodeRange( int nIndex);
  86. void SetEUDCCodeRange( int nIndex);
  87. void CalcCharSize();
  88. private:
  89. WORD GetNextCode( WORD Code);
  90. WORD CorrectEUDCCode( WORD Code, BOOL UporDown);
  91. WORD CorrectEUDCCodeKey( WORD Code, int MovePt, BOOL UporDown);
  92. WORD GetCodeScrPos( int Pos);
  93. int GetBarPosition( WORD Code);
  94. void DrawConcave( CDC *dc, CRect rect, BOOL PtIn);
  95. void SearchSelectPosition();
  96. BOOL IsCorrectChar( UINT i, UINT j);
  97. // Member parameter
  98. public:
  99. CFont EUDCFont;
  100. CFont SysFFont;
  101. WORD EUDC_SView;
  102. WORD EUDC_EView;
  103. WORD EUDC_SCode;
  104. WORD EUDC_ECode;
  105. WORD SelectCode;
  106. int cRange;
  107. int BarRange;
  108. CPoint LButtonPt;
  109. CSize CharSize;
  110. short ScrlBarPos;
  111. private:
  112. CRect EditListRect;
  113. CSize FixSize;
  114. CPoint WritePos;
  115. int ySpace;
  116. int m_Index;
  117. BYTE CSpace[5];
  118. BOOL FocusFlag;
  119. protected:
  120. //{{AFX_MSG(CEudcList)
  121. afx_msg void OnPaint();
  122. afx_msg void OnVScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  123. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  124. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  125. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  126. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  127. afx_msg void OnSetFocus(CWnd* pOldWnd);
  128. afx_msg void OnKillFocus(CWnd* pNewWnd);
  129. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  130. //}}AFX_MSG
  131. DECLARE_MESSAGE_MAP()
  132. };
  133. #endif