On Apr 17, 2006, at 8:16 AM, bulia byak wrote:

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.


Thanks, Bulia.

This is a very helpful description of the situation and the best practices to use for it.