October 07, 2002

Fighting Libraries

Why is it that I spend so much time fighting with or redesigning libraries? Don't get me wrong, WTL is much easier to work with than MFC ever was. I still, however, keep finding myself re-implementing portions of library code. This last two weeks have found me re-implementing MRU menus and implementing my own miniature Update-UI framework.

The reason for this latest change is that I can't seem to get WTL's CUpdateUI working in both my main frame and my child window. The OnInitMenuPopup function in the main frame gets called whether or not I want it to - the child window doesn't get a chance. Of course, if anyone can prove me utterly wrong and can remove my need of "PoorMansUpdateUI" style code then I'd be really pleased to hear from them.

Obviously I can't expect library designers to cater for all tastes, but I still feel that this ought to be wasted effort. Sites like CodeProject.com make this much easier by providing excellent example and code re-use repositories. Ah well, maybe one day I'll find the perfect library (no really!).

Oh, and don't even get me started on getting a themed bitmap button. D'oh!

</rant>

Posted by Simon at October 7, 2002 10:55 PM
Feedback