Use wxNewEventType().xee wrote:first, I want to ask how to choose the id for the new event(which is set to 5000 in the code above).
You could also have a look at this page for more information about how to create custom events.
or this one
Use wxNewEventType().xee wrote:first, I want to ask how to choose the id for the new event(which is set to 5000 in the code above).
wxGetMousePosition()?i don't know of any other way to get the mouse-position at any time anywhere on the screen. maybe someone else knows a better way...
Code: Select all
long styleflag = GetWindowStyle();
SetWindowStyle(styleflag | wxSTAY_ON_TOP);