C++ Windows Programming Question

  Nigel-331402 15:34 09 Sep 04
Locked

I've got this piece of code

LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
return (0);
}

which gets called when I press the left mouse button over a particular window (this is Visual Studio 6 generated).

I need to know the relative coordinates (relative to window origin) of the mouse but for the life of me I can't see how to find it.

Can somebody offer any help ?

  Nigel-331402 15:10 10 Sep 04

Got it sorted now.

This thread is now locked and can not be replied to.

How to get Windows 10 for free | How to install Windows 10: There is still a way to avoid paying…

1995-2015: How technology has changed the world in 20 years

Hands-on with the Star Wars fighting drones you can fly yourself

15 macOS Sierra tips | How to use macOS Sierra: Secret tricks and best new features in Apple's new…