📄 listctrlpop.h
字号:
#if !defined(AFX_LISTCTRLPOP_H__8A5B0B9F_FF30_44B5_BB1C_7861176893D2__INCLUDED_)
#define AFX_LISTCTRLPOP_H__8A5B0B9F_FF30_44B5_BB1C_7861176893D2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ListCtrlPop.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CListCtrlPop dialog
#define IDD_DIALOG_LISTCTRL_POP 155
class CListCtrlPop : public CDialog
{
// Construction
public:
virtual ~CListCtrlPop();
bool ShowAllStringList();
bool RefreshListCtrlView(int conditionsubitem, CString scondition,int inothis,CString snothis,int subitem, CString edited);
bool RefreshListCtrlView(int conditionsubitem ,CString scondition,int subitem, CString edited);
bool RefreshListCtrlView(int subitem,CString edited,CString sCankao,int cankao_subitem);
bool RefreshListCtrlView(int subitem,CString edited);
int GetSelectedMark();
CWnd* GetCurEditWnd();
void SendTheUDNPMessage(UINT KEY);
void ShowListPop();
void SetStrWindowText();
void ClearListAllColumn();
CListCtrlPop(CWnd* pParent = NULL); // standard constructor
virtual bool Create(CWnd* parent);
CStringList* SelectStringList(int number,CStringList* newstringlist);
bool InitListCtrl();
void ClearListCtrlItems();
CString GetListCtrlSel(int subitem);
void SetShowPosition(const CRect& rect,CWnd* wndedited);
// enum{ID_POP_LISTCTRL=301};
// Dialog Data
//{{AFX_DATA(CListCtrlPop)
enum { IDD = IDD_DIALOG_LISTCTRL_POP };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListCtrlPop)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
//用来记录数据
CStringList* m_strlist;
int m_iColumns;
CListCtrl* m_listctrl;
int m_iCurSel;
//the wnd who is edited;
CWnd* m_wndStrEdited;
int m_iSubItem;
//show position
CRect m_rectShow;
CPoint m_ptPosition;
protected:
// Generated message map functions
//{{AFX_MSG(CListCtrlPop)
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnSetfocusList1(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
// afx_msg void OnMyItemchangedList();
// afx_msg void OnItemDBlclkList();
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LISTCTRLPOP_H__8A5B0B9F_FF30_44B5_BB1C_7861176893D2__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -