mouse position without event
Bill Baxter
wbaxter at gmail.com
Fri Jul 13 01:36:55 PDT 2007
On 7/13/07, Eran Ifrah <eran.ifrah at gmail.com> wrote:
> You can use:
> #include <wx/utils.h>
> wxPoint wxGetMousePosition()
>
> From the documents:
> "Returns the mouse position in screen coordinates"
Ah ha. Well there you go. wx does have a better way.
Incidentally you can often find things like this that don't seem like
they belong to any particular class by browsing through the
'functions' list in the docs:
http://www.wxwidgets.org/manuals/2.8/wx_functionsalphabetically.html#functionsalphabetically
And in fact wxGetMousePosition() is there, and you can find it by
searching for "mouse" on that page.
--bb
More information about the wx-users
mailing list