C++ mouse location outside the application?
-
i'am using this code to get Y location this->Text1->Text=e->Y.ToString(); but how to get the mouse location out of the application screen? if i put the code in form1 i get mouse location only when the mouse is on form1 if i put the code in panel1 i get the mouse location for panel1 only not form1...
-
Answer:
include <Windows.h> int main(){ POINT cur; GetCursorPos(&cur); //x and y values stored in cur.x and cur.y }
NextGenC... at Yahoo! Answers Visit the source
Related Q & A:
- How to implement chat application in C# MVC?Best solution by stackoverflow.com
- Is it possible to develop iPhone application using C#?Best solution by Stack Overflow
- How to learn C# (moving from C++ to C#?Best solution by stackoverflow.com
- How can I get the remote server's date and time at the client side in my application in c#?Best solution by Stack Overflow
- Is there some kind of API for MSN protocol (for using in C# asp.net application?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.