mylistbox.cpp

来自「无线图象监控系统(用VC++编程)用数据库ACCESS存储图象」· C++ 代码 · 共 63 行

CPP
63
字号
// MyListBox.cpp : implementation file
//

#include "stdafx.h"
#include "moinorcentre.h"
#include "MyListBox.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMyListBox

CMyListBox::CMyListBox()
{
}

CMyListBox::~CMyListBox()
{
}


BEGIN_MESSAGE_MAP(CMyListBox, CListBox)
	//{{AFX_MSG_MAP(CMyListBox)
	ON_WM_VSCROLL()
	ON_WM_VSCROLLCLIPBOARD()
	ON_WM_MOUSEMOVE()
	ON_CONTROL_REFLECT(LBN_SELCHANGE, OnSelchange)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyListBox message handlers

void CMyListBox::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	// TODO: Add your message handler code here and/or call default
	GetParent()->Invalidate();
	CListBox::OnVScroll(nSBCode, nPos, pScrollBar);
}

void CMyListBox::OnVScrollClipboard(CWnd* pClipAppWnd, UINT nSBCode, UINT nPos) 
{
	// TODO: Add your message handler code here and/or call default

	CListBox::OnVScrollClipboard(pClipAppWnd, nSBCode, nPos);
}

void CMyListBox::OnMouseMove(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	
	CListBox::OnMouseMove(nFlags, point);
}

void CMyListBox::OnSelchange() 
{
	GetParent()->Invalidate();	
}

⌨️ 快捷键说明

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