draw in picture control and having scorll mfc c++

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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
 
Back
Top