📄 scroll.cpp
字号:
// Scroll.cpp: implementation of the CScroll class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "mixer.h"
#include "Scroll.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CScroll::~CScroll()
{
}
void CScroll::SetPos(int iPos)
{
::SetScrollPos(GetWndHandle(),SB_CTL,iPos,TRUE);
}
void CScroll::SetPositions(int iMin,int iMax,int iPage,int iPos)
{
m_iPage=iPage;
SCROLLINFO scInfo;
scInfo.cbSize=sizeof(SCROLLINFO);
scInfo.nMin=iMin;
scInfo.nMax=iMax;
scInfo.nPage=m_iPage;
scInfo.nPos=iPos;
scInfo.fMask=SIF_RANGE;
::SetScrollInfo(GetWndHandle(),SB_CTL,&scInfo,TRUE);
scInfo.fMask=SIF_PAGE;
::SetScrollInfo(GetWndHandle(),SB_CTL,&scInfo,TRUE);
scInfo.fMask=SIF_POS;
::SetScrollInfo(GetWndHandle(),SB_CTL,&scInfo,TRUE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -