触摸屏租赁
Touch screen rental
广告机租赁
Advertising rental
机器人租赁
Robot leasing
 当前位置:首页 > > vc++编辑框内容上翻与下翻

void CPppppppppppppDlg::OnButton1()
{
 // TODO: Add your control notification handler code here
 CEdit* pEdit = (CEdit*)this->GetDlgItem(IDC_EDIT1);
 if (pEdit != NULL)
 {
 //pEdit->LineScroll(pEdit->GetLineCount()); //到最后一行
 pEdit->LineScroll(-10);
}
 
}

void CPppppppppppppDlg::OnButton2()
{
 // TODO: Add your control notification handler code here
 CEdit* pEdit = (CEdit*)this->GetDlgItem(IDC_EDIT1);
 if (pEdit != NULL)
 {
 //pEdit->LineScroll(pEdit->GetLineCount()); //到最后一行
 pEdit->LineScroll(10);
}

}


工作室地址:重庆石桥铺电脑城B座 | 微信:z35544216 | 网址:www.35544216.com