Don't get discouraged. The AcEdInputPointFilter looks like it's
ridiculously complicated, because of all of the arguments being passed to
it, but it's not as tough as it seems. Actually, if all you intend to do is
change the cursor, it should be quite easy. You can use the wizard bar (the
ObjectARX Input Point API button) to create a filter for you, and all you
should have to do is have some sort of global variable that determines if
your custom cursor should be shown (or some other manner of determining
that).
In the ProcessInputPoint( ) function, simply add the following lines (this
assumes that the variable 'ShowCustomCursor' is a global bool....
if(ShowCustomCursor)
{
// First, disable AutoCAD's default cursor.
// This only needs to be done once, so first check to see if
// it has already been disabled.
if(curDoc()->inputPointManager()->systemCursorDisableCount()==0)
curDoc()->inputPointManager()->disableSystemCursorGraphics();
// Now you're ready to show your cursor (assuming that
// myCursor is a valid HCURSOR that you previously loaded
// (something like myCursor =
acedGetAcadWinApp()->LoadCursor(IDC_HANDCUR); )
SetCursor(myCursor);
}
else
{
// We should NOT display the custom cursor - make sure the standard
// AutoCAD cursor is on....
if(curDoc()->inputPointManager()->systemCursorDisableCount()==1)
curDoc()->inputPointManager()->enableSystemCursorGraphics();
}
That's all there is to it! Again, i'm not sure if this is the best way to
do it, but i rely on this quite a bit since i change the cursor in all sorts
of different situations. I guess as long as it works, right?
"DC Deno" wrote in message
news:ACF88428C251CB7189B854B8174F6E5B@in.WebX.maYIadrTaRb...
> Excellent, thanks for that Justavian.
>
> Looks like I'm gonna get a soaker right off the bat 🙂
>
> I'll still appreciate any other comments.
>
> Dave
>
>