View Single Post
Old September 24th, 2006, 04:46 PM
davidd31415 davidd31415 is offline
Registered User
Join Date: Nov 2005
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Sure enough, that didn't take long to figure out!

In the OnPenwidth() handler when the CPenDialog data member is created in

CPenDialog aDlg;

it associates itself with the Dialog that was selected using the class wizard. I selected the wrong dialog originally. Deleting the CPenDialog class that I had made proved to be a bit confusing: I used the Solution Explorer (note I'm using Visual Studio 2003, not V6) to REMOVE the .h and .cpp files but then ended up having to manually delete several lines. I'm expecting more errors from this housekeeping to come up in the future- I need to learn how to properly remove classes from a project.