HQ_CL.H
上传用户:bjghjy
上传日期:2007-01-07
资源大小:379k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Visual C++

  1. #define GWW_HQ_TYPE 0
  2. #define Y0_TITLE 0
  3. //#define X0_TITLE 84
  4. //#define ITEM_SPACE_Y 7
  5. //#define ITEM_SPACE_X 12
  6. //#define WM_HQ_INIT WM_USER
  7. //#define WM_HQ_READ WM_USER+1
  8. //#define WM_SEND_REFRESH WM_HQ_READ
  9. #define WM_HQ_REFRESH WM_USER+2
  10. #define WM_READ_OK WM_HQ_REFRESH
  11. #define WM_HQSEL_RESET WM_USER+3
  12. //#define WM_HQFLDS_RESET WM_USER+4
  13. #define SORT_DOWN 0
  14. #define SORT_UP 1
  15. #define SORT_ZQDM 0
  16. #define HQ_SZALL 0
  17. #define HQ_SHALL 1
  18. #define HQ_SEL_1 2
  19. #define HQ_SEL_2 3
  20. #define HQ_SEL_3 4
  21. #define HQ_SEL_4 5
  22. #define HQ_SEL_5 6
  23. #define HQ_ALL 0
  24. #define HQ_A      1
  25. #define HQ_B      2
  26. #define HQ_BOND   3
  27. typedef struct tag_SORT_DATA
  28. {
  29. int type;
  30. int fldID;
  31. int key[MAX_HQ_REC_COUNT];
  32. }SORT_DATA, FAR *LPSORT_DATA;
  33. typedef struct tag_HQ_PAINT_DATA
  34. {                       
  35. int jys, type ,filter;
  36. int recCount, fldCount;
  37. int curRecNum, curSelRec, curRecCount, curFldNum;
  38. int x0, itemHeight;
  39. RECT rcTitles[HQ_FLDS_COUNT+1];
  40. SORT_DATA sortData;
  41. int fldNum[HQ_FLDS_COUNT+1];
  42. }HQ_PAINT_DATA, FAR *LPHQ_PAINT_DATA;
  43. HFONT ghFontSmall;
  44. HFONT hHqFont;
  45. short *recList;
  46. int FontHight;
  47. BOOL isRF;
  48. unsigned short ITEM_SPACE_Y;
  49. unsigned short X0_TITLE;
  50. unsigned short ITEM_SPACE_X;
  51. LOGFONT lf;
  52. BOOL IsZsRec(int jys, int rec_num);
  53. BOOL RegisterHq(void);
  54. BOOL CreateWndHq(HWND);
  55. BOOL HqInit(void);
  56. void HqExit(void);
  57. int RefreshAllWnd(void);
  58. extern HQ_PAINT_DATA HqPaintData;