void CPaintDlg::OnLButtonUp(UINT nFlags, CPoint point) |
{ |
CDialog::OnLButtonUp(nFlags, point); |
} |
//枠を描く |
delete myPen; |
myPen=new CPen; |
myPen-CreatePen(PS_SOLID,1,RGB(0,0,255)); |
pDC-SelectObject(myPen); |
for(int k=0; k = 2; k++){ |
pDC-MoveTo(xmin+k*bisectx,ymin); |
pDC-LineTo(xmin+k*bisectx, ymax); |
} |
for(int j=0;j=3; j++){ |
pDC-MoveTo(xmin,ymin+j*trisecty); |
pDC-LineTo(xmax,ymin+j*trisecty); |
} |
delete myPen; |
myPen=new CPen; |
myPen-CreatePen(PS_SOLID,3,RGB(255,0,0)); |