SetColumnDlg.h
上传用户:zhanglf88
上传日期:2013-11-19
资源大小:6036k
文件大小:3k
源码类别:

金融证券系统

开发平台:

Visual C++

  1. #if !defined(AFX_SETCOLUMNDLG_H__812A1C1F_A53C_45B9_A5B9_21794C33EBDB__INCLUDED_)
  2. #define AFX_SETCOLUMNDLG_H__812A1C1F_A53C_45B9_A5B9_21794C33EBDB__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SetColumnDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CColListCtrl window
  10. /***
  11. 设定显示列的ListCtrl
  12. */
  13. class CColListCtrl : public CListCtrl
  14. {
  15. // Construction
  16. public:
  17. CColListCtrl();
  18. // Attributes
  19. public:
  20. // Operations
  21. public:
  22. int SetComboBoxColumn( int nCol );
  23. int SetItemStrings( int nItem, CStringArray &astr );
  24. BOOL CreateComboBox( int nItem );
  25. int ShowItemComboBox( int nItem );
  26. int HideItemComboBox( );
  27. protected:
  28. int m_nComboBoxColumn;
  29. CPtrArray m_aptrItemStrings;
  30. CComboBox m_comboBox;
  31. int m_nCurItem;
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CColListCtrl)
  35. public:
  36. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. public:
  40. virtual ~CColListCtrl();
  41. // Generated message map functions
  42. protected:
  43. //{{AFX_MSG(CColListCtrl)
  44. afx_msg void OnClick(NMHDR* pNMHDR, LRESULT* pResult);
  45. afx_msg void OnKillfocus(NMHDR* pNMHDR, LRESULT* pResult);
  46. afx_msg void OnKillFocus(CWnd* pNewWnd);
  47. afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CSetColumnDlg dialog
  53. /***
  54. 设置股票列表显示列的对话框
  55. */
  56. class CSetColumnDlg : public CDialog
  57. {
  58. // Construction
  59. public:
  60. CSetColumnDlg(CWnd* pParent = NULL);   // standard constructor
  61. // Dialog Data
  62. //{{AFX_DATA(CSetColumnDlg)
  63. enum { IDD = IDD_SETCOLUMN };
  64. CButton m_btnCancel;
  65. CButton m_btnSetDefault;
  66. CButton m_btnNewIndex;
  67. CButton m_btnMoveUp;
  68. CButton m_btnMoveDown;
  69. CButton m_btnSetAll;
  70. CButton m_btnOK;
  71. CButton m_btnDelIndex;
  72. CButton m_btnEditIndex;
  73. CColListCtrl m_listColumn;
  74. //}}AFX_DATA
  75. // Overrides
  76. // ClassWizard generated virtual function overrides
  77. //{{AFX_VIRTUAL(CSetColumnDlg)
  78. protected:
  79. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  80. //}}AFX_VIRTUAL
  81. // Implementation
  82. protected:
  83. BOOL m_nYieldAverageDaysOld;
  84. BOOL m_bUserIndexModified;
  85. void SetListColumnItems( CSPDWordArray & anShow, BOOL bSetDefault );
  86. // Generated message map functions
  87. //{{AFX_MSG(CSetColumnDlg)
  88. virtual BOOL OnInitDialog();
  89. afx_msg void OnMoveup();
  90. afx_msg void OnMovedown();
  91. afx_msg void OnNewindex();
  92. afx_msg void OnEditindex();
  93. afx_msg void OnDelindex();
  94. virtual void OnOK();
  95. afx_msg void OnItemchangedColumnlist(NMHDR* pNMHDR, LRESULT* pResult);
  96. afx_msg void OnSetdefault();
  97. afx_msg void OnDblclkColumnlist(NMHDR* pNMHDR, LRESULT* pResult);
  98. afx_msg void OnSetall();
  99. //}}AFX_MSG
  100. DECLARE_MESSAGE_MAP()
  101. };
  102. //{{AFX_INSERT_LOCATION}}
  103. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  104. #endif // !defined(AFX_SETCOLUMNDLG_H__812A1C1F_A53C_45B9_A5B9_21794C33EBDB__INCLUDED_)