How to make a lemon of yourself...
-
Over the last couple of weeks I've been going through the UI of our app (Pharos[^]) making it XP-theme compatible. Most of it's been pretty straightforward (adding a manifest fixes most things) but there have been one or two challenges - like replacing owner draw controls and removing rich edit controls used to display formatted text in dialogs (the background comes out wrong). I'm now mopping up by fixing all the colour picker controls and noticed that the one we were using wasn't multi-monitor aware - the colour popup always appeared on the primary monitor. As I run with my primary monitor on the right, and the taskbar on the left hand (secondary) monitor this is rather annoying! As we still have to support NT 4.0 and I knew the multi-monitor API wasn't implemented on that OS, I then quite happily went away and wrote a wrapper class for it which dynamically loaded the API functions I needed to use...I even thought about writing an article on it! Then, I actually looked inside multimon.h, and discovered that it already does this - so I just spend a couple of hours doing something the SDK already did! X| More coffeeeeee....pleeasssseee!!! As an aside it wasn't just me yesterday - we just had a new UPS delivered (the one we're using was overloading too often for our liking) and one of my co-workers quite happily plugged his machine into it and powered it up. After he went home I noticed he'd plugged into the "Surge Protection only" socket and the thing wasn't even powered up! :laugh: Anna :rose: www.annasplace.me.uk
"Be yourself - not what others think you should be"
- Marcia GraeschTrouble with resource IDs? Try the Resource ID Organiser Add-In for Visual C++