MFC's Radio Button Hack

Disclaimer: I am a mac user, but a windows programmer. MFC is Microsoft鈥檚 old Window framework. Basically it is an object oriented wrapper around the traditional Win32 programming environment presented by Microsoft to help develop windows. Win32 is many years old, and so is MFC. Microsoft鈥檚 new frameworks, .NET and WPF (Windows Presentation Framework) are supposedly better than MFC, but I have yet to play with them. MFC has tools for many different types of controls, from buttons to dialogs, windows, and menus. MFC allows the user to create the button, override some basic functionality, provide message callbacks and otherwise manipulate the application. Buttons are particularly interesting because the base class for buttons actually provides a ton of functionality for many different types of buttons. From this one class, you can get push buttons, check boxes, radio buttons, owner draw buttons (the programmer handles the rendering of these buttons), etc. ...

September 4, 2008 路 zacharyzacharyccom

Photo of the Day: Sun Beach

This picture was also taken on my road trip to Monterey. This is on the way down to Carmel, before we made it to pebble beach. I couldn鈥檛 have asked for a better day to take pictures. The clouds were perfect and sun was bright. I just wish the photographer were better 馃槈 [![Picture taken between Monterey Aquarium and Pebble Beach](/assets/img/2008/09/sunbeach.jpg?resize=499%2C330&ssl=1 "Sun Beach")](/assets/img/2008/09/sunbeach.jpg?ssl=1)Picture taken between Monterey Aquarium and Pebble Beach

September 4, 2008 路 zacharyzacharyccom

Photo of the Day: Jelly Fish

This shot was taken at the Monterey Aquarium. Low light, no flash, this was the best I could get.

September 3, 2008 路 zacharyzacharyccom

Wanting To Find A Bug

This happened to me last week. Yet another lesson learned. I was working on debugging some code at work. Someone was complaining about some functionality in an element we draw on screen. In order to better diagnose the problem, I wanted to create an example and see if I couldn鈥檛 get the problem to reproduce. Not a bad first step. The problem was that as I wrote out the code I made a typo on the code I was writing. I wrote something like the following snippet: ...

September 2, 2008 路 zacharyzacharyccom

Photo of the Day: Wine Fence

After a short little weekend break, Photo of the day is back. This photo I shot yesterday in Napa. I finally started to experiment with my new defuser. Since the sun was out in force yesterday, I used this light as a fill and ended up with some interesting results. This just happens to be my favorite composition from the day. [![Wine Fence at Napa with fill flash](/assets/img/2008/09/wiretree.jpg?resize=499%2C330&ssl=1 "Wine Fence")](/assets/img/2008/09/wiretree.jpg?ssl=1)Wine Fence at Napa with fill flash

September 2, 2008 路 zacharyzacharyccom