From: KJK::Hyperion <no...@li...> - 2002-07-21 11:46:35
|
At 06.37 21/07/2002, you wrote: > > >Actually they changed how SetForegroundWindow() works in Win98 & Win2k. > > >Now it does only flash the window's title. > > it's not enough. It doesn't protect stupid developers from creating windows > > that steal the focus from another window in the same program. See Miranda > > ICQ: the smartass that programmed the StatusNotifyEx plugin uses > > SetForegroundWindow (or something to that effect) constantly, so you often > > find yourself typing into a notification pop-up because it has stolen focus > > from the message composing window >Some axioms to remember, my friend: [...] I'll add one from my guru Joel Spolsky: "[...] We used to write algorithms. Now we call APIs. Nowadays a good programmer spends a lot of time doing defensive coding, working around other people's bugs. It's not uncommon to set up an exception handler to prevent your code from crashing when your crap library crashes. [...]" very fitting in the Miranda plugins scenario |