すみません
一応調べていたんですが

HWND hWnd;
POINT point;

GetCursorPos(&point);
ScreenToClient(hWnd, &point);
sprintf(str,"マウスのX座標:%03d", point.x);
D3DrawText(0, 0, str);

sprintf(str,"マウスのY座標:%03d", point.y);
D3DrawText(200, 0, str);

ってやったんですが、値がウィンドウのところからの座標が返ってきません。
どこがいけないのでしょうか?