MFC :: WM_SIZE message causes access violation?
Hello there. I am currently developing a simple web browser application using MFC, MS Visual C++ 6.0. That is not the difficult part. I have the navigation toolbar (Back, Forward, Stop, Refresh, and Home buttons), the address bar (CComboBox for typing a URL, etc.) and the "Go" button. I also have a working progress bar as a child of the status bar. As a matter of fact, I am using my browser right now. It is mostly functional, except I don't have the history, favorites, and a few more things completed. Along with that, I have a general preferences option. That's where you can clear the history and set the home page.
Usually when a web browser application is created using MFC (CHtmlView) it uses MS Internet Explorer's settings, but I am changing mine around so it uses its own independent settings. Instead of the default "GoHome()" function, I have created an overloaded "GoHome()" function that reads the user's home page our of the registry (under MY OWN registry key) =). Anyhow, I am trying to use the WM_SIZE message (CMyView::OnSize) function to resize the status bar, but it comes up with an access violation. It just takes me to an Assembly debug window when I choose to debug.
Do I need to do something like this before I resize the status bar?:
// Blah, Blah, Blah
Any help is appreciated! :)