EDN Admin
Well-known member
Hi all, I want to draw in Picture Box control my purpose is picture box have scroll bar that I can draw in it bigger than what Its size I mean have scroll to move Its picture, I try to draw something more than pictureboxs size, It went to main frame panel
my code is below.
<pre lang="x-cpp void Cex133Dlg::OnBnClickedOk()
{
CDC *myDC = GetDlgItem(IDC_DRAWBOX)->GetDC();
myDC->Rectangle(10, 10, 10, 20);
}[/code]
I mean have white paper for drawing and have scroll maybe like windows paint,
View the full article
my code is below.
<pre lang="x-cpp void Cex133Dlg::OnBnClickedOk()
{
CDC *myDC = GetDlgItem(IDC_DRAWBOX)->GetDC();
myDC->Rectangle(10, 10, 10, 20);
}[/code]
I mean have white paper for drawing and have scroll maybe like windows paint,
View the full article