hi i want the code for to get the position of the mouse where the clicking operation is performed outside the form. thx in advance

Override WNDPROC and grab the co-ordinates from the WM_MOUSEDOWN message

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.