Click here to Skip to main content
15,909,742 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have an image and added ActiveX control on picture control.
I have added three events on ActiveX control
C++
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);//GetWindowRect
    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)
Posted
Updated 15-Nov-12 19:11pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900