I have placed a command button on a form, which starts up in maximized state.

I am using the GetCursorPos API and getting the cursor position.

The values of the x and y co-ordinates returned are lesser than the left and top of the command button, inspite of the command button being placed to a much more left and top positions.

I am not getting where am I going late.

Please suggest accordingly.

Thanks
Harini