1) I override, since Deactivate is also fired if a messagebox shows up. That happens when clicking the "clear history" link. In that case the popup window disappears, which is not what i wanted... By overriding the window proc this doesn't happen
That makes sense. I find it's usually a good idea to document this kind of thing in your code with comments, if I don't I come back to it after six months and think "why the hell did I do that"? Also, it's better to use a named constant for the window message
you're looking for rather than using a magic number in your code. Right now I have to search through the header files to find out which one it is.
Sorry if it sounds like I'm lecturing you, the Teaching Assistant in me tends to come out sometimes.