Is casting a POINT
argument to LPPOINT
needed or not in the following scenario:
POINT point;
ClientToScreen(somehwnd, (LPPOINT) &point);
Or is the following enough:
POINT point;
ClientToScreen(somehwnd, &point);
This Win32 document uses a cast, whereas this Win32 document does not use a cast.
LPPOINT
is a type alias for POINT*
. The expression &point
has the type POINT*
. A cast is not required.