How to get location of NSStatusItem on the screen?

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

Was this solution helpful to you?

Just Added Q & A:

Find solution

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.