المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Bitmap on Picture Control



C++ Programming
08-13-2011, 03:21 PM
Hi all,
I am taking a picture control on the dialog.In Properties I am taking a Bitmap Image on the dialog.
I am planning to drag and drop the bitmap image to other ********.But i am not able to.
I am able to get the MouseMovements(x axis,y axis),where in ,i am changing the cursor when the mouse is on the
bitmap image as shown in below function.
Please find the below code,which i am trying.
Please let me know what to do

void CLoadImageDlg::OnMouseMove(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default HWND hwnd; CString str_mousemove; POINT p; long int xp,yp,i; int lParam; i=3; GetCursorPos(&p); xp=p.x; yp=p.y; str_mousemove.Format(_T("x = %d,y=%d"),xp,yp); CPoint ptHotSpot(500,600); if((xp>507 && xp 460 && yp507 && xp 460 && yp