View Single Post
  #56 (permalink)  
Old 08-02-2007, 04:27 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 299
Karpagarajan is on a distinguished road
Post Re: VC++ Tips & Tricks

To get the Cursor (X,Y) position in PreTranslateMessage add the following code.
POINTS pts = MAKEPOINTS( pMsg->lParam );
POINT point;
point.x = pts.x;
point.y = pts.y;
in the mouse message trapping like WM_LBUTTONUP ,WM_MOUSELEAVE etc.


thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Reply With Quote