这些操作网上都有,就不再继续写了,找一下别人写的教程就可以了
列表框生成表格 https://blog.csdn.net/gzg1500521074/article/details/38646841
创建列表--列表框形式 biaohttps://blog.csdn.net/boon_228/article/details/51516198
标签页http://www.jizhuomi.com/software/207.html
进度条:可以设置为双线程进行更新显示,也可以用settimer或者触发式进行更新显示
-
void GetRange(int &lower,int &upper)返回进度条范围。
-
int GetPos()获得当前位置
-
int StepIt( )以当前步长使进度条增长
-
int SetStep( int nStep )设置步长
-
int SetPos( int nPos )设置位置
-
void SetRange( int nLower, int nUpper )设置进度条范围。
定时类:
SetTimer(PLAY_TIMER_ID,1000,NULL);//设置定时器
void CGameDlg::OnTimer(UINT_PTR nIDEvent)
{
// TODO: 在此添加消息处理程序代码和/或调用默认值
if (nIDEvent == PLAY_TIMER_ID && m_bPlaying ) {
if(!m_bPause)
m_GameProgress.StepIt();//设置进度条位置,运行一次就增加一次迁移量
}
DrawGameTime();
JudgeWin();
CDialogEx::OnTimer(nIDEvent);
}