codefinisherlistbox.h

来自「用bcg库编写的java IDE 源码」· C头文件 代码 · 共 51 行

H
51
字号
// CodeFinisherListBox.h: interface for the CCodeFinisherListBox class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CODEFINISHERLISTBOX_H__D80D54B2_AAAA_4624_8D8F_F27424C24A12__INCLUDED_)
#define AFX_CODEFINISHERLISTBOX_H__D80D54B2_AAAA_4624_8D8F_F27424C24A12__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ListBoxST.h"
#include "Popup.h"



class CCodeFinisherListBox : public CListBoxST  
{
    int       m_xMax;
    int       m_yMax;
public:
	CCodeFinisherListBox();
	virtual ~CCodeFinisherListBox();
    void AddItem(CString strItem,UINT nType,UINT nMod = -1);

    bool      m_bEnableLastAction;
class XPopupCtrlEvent : public IPopupCtrlEvent
    {
    public:
        virtual bool OnInit ();
        virtual void OnShow ();
        virtual void OnHide (bool bAbort);
        virtual int OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags);
        virtual int OnLButtonDown (UINT nFlags, CPoint point);
		virtual int OnLButtonDblClk(UINT nFlags,CPoint point);
        virtual int OnLButtonUp (UINT nFlags, CPoint point);
        virtual IPopupCtrlEvent* GetInterfaceOf (HWND hWnd);
        void InsertText();
    } m_xPopupCtrlEvent;

	void ReCalcSize(CRect& rcSize);
    void Reset();
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);

	afx_msg void OnNcPaint();

   DECLARE_MESSAGE_MAP()
};

#endif // !defined(AFX_CODEFINISHERLISTBOX_H__D80D54B2_AAAA_4624_8D8F_F27424C24A12__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?