I have an image and added ActiveX control on picture control.
I have added three events on ActiveX control
void CWin2Dlg::OnMouseMove(short Button, short Shift, float X, float Y)
{
}
void CWin2Dlg::LeftMouseDown(short Button, short Shift, float X, float Y)
{
dimx=X;
dimy=Y;
}
void CWin2Dlg::OnMouseLeave(short Button, short Shift, float X, float Y)
{
CRect rc;
GetClientRect(&rc); PicpStatic=new CStatic();
CRect rcClient=new CRect(dimx,dimy,X,Y);
PicpStatic->Create("",WS_CHILD|WS_VISIBLE|SS_BITMAP,rcClient,this,50);
PicpStatic->ShowWindow(SW_HIDE);
}
All three events are working fine.
But I want to know how can I select image area(e.i. crop image)