First chance exceptions in C++ UI classes

Recently, I was developing a CPropertySheet based application (the application development started in VS 6, but is now done in VS 2010). I got some "first-chance-exceptions" in the SetActivePage method of the PropertySheet.

The documentation of the SetActivePage method already warns about the first chance exceptions that you might get, but in my case, that didn't help solve the exceptions.

After some digging, I noticed that the font of the property pages was not consistent. Older objects had either "MS Sans Serif" or "MS Shell". However, all pages should have "Microsoft Sans Serif".

After changing the fonts of all dialog resources, all exceptions are now history.

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList