📄 mylistbox.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -