Using global struct statedata (defined in header ..\Mstn\MicroStation.r.h) my app. can obtain the current cursor position in a MicroStation view...
statedata
..\Mstn\MicroStation.r.h
DPoint3d CurrentCursorPosition () { return statedata.current.dpUors; }
I notice that as I move the cursor over a non-view window, such as MicroStation's tool settings, the current coordinates are zero. How can I tell whether the cursor is in a MicroStation view window or in a non-view window?
I my code for ISprites, I use IViewMonitor so one knows when the cursor moves in to/out of a viewport. I haven't looked specifically what happens in IViewMonitor when the cursor moves over a non-view window, but I am able to prevent the sprite from displaying when the cursor is over something like the Tool Settings.
bool isView = mdlWindow_isView(nullptr, statedata.current.gwP);
Answer Verified By: Jon Summers