On 4/17/06, Aaron Spike <aaron@...749...> wrote:
Is SP_ACTIVE_DESKTOP evil?
Not by itself. You just need to know where it's safe to use. For
example within verbs you should avoid it (though currently it's still
much used in functions called by verbs, this needs to be fixed). This
is because verbs can at some time be called by scripts or in some
weird situations where there's no current desktop, or where you want
to act on a non-current one. But in e.g. dialog which uses it to find
out which desktop is active, SP_ACTIVE_DESKTOP is perfectly OK.