Pete's Log: grrr, argh
Entry #1368, (Coding, Hacking, & CS stuff)(posted when I was 26 years old.)
The MFC CDialogBar class is my nemesis. If you need to derive a class from it, you have to do a fake InitDialog procedure, and -- and this is poorly documented -- if a button on your CDialogBar doesn't have a command target, it gets disabled. This doesn't happen in regular dialogs. I just wasted an hour and a half of my life trying to figure this out. I was trying to create a menu button, so clicking the button didn't need to activate a command target, it just had to drop down a menu. So finally I figured out all I needed was an empty callback function hooked up to this button. Stupid Microsoft.
So I've now gone about 60 hours with caffeine. It's not fun. Perk motivated me to try giving up the poison again. I tried back in November, but only lasted two weeks. Perk found that you need to go 60 days before your body is fully free from the lingering effects of caffeine. We'll see how this works out.
I had other things I was going write about, but the caffeine absence in my blood stream is clouding my mind.