1. Do not use AfxMessageBox for debugging purpose. Use TRACE macros instead.
2. Do not use OnSetActive for drawing purpose. Handle WM_PAINT instead.
3. Do not call Sleep function for simulating...
One aside note: AFAIK, the system frees all resources when the process terminates, so it is not obviously necessary to take care of allocated memory when the process ends unexpectedly.
About a discussion (generally speaking)
When a couple of experienced people (programmers and not only) disagree your point, the best thing you can do is to stop arguing, at least...
Normally, should be not any problem with resources when porting to a newer Visual Studio version.
And, if something is wrong in the resource script (.rc) file, the resource editor should not hang...
@VictorN & OReubens
[ off-topic ]
I noticed that newer versions of MSDN tend to eliminate references to older Windows versions. Possible, they want to place them in the Dark (Windows Programming)...
...and, in each situation of this kind (and every time it's necessary), have a look in the documentation: http://msdn.microsoft.com/en-us/library/bk77x1wx(v=vs.80).aspx.
Or, hit F12 key for jumping...
Well, you are now in the right place: "Managed C++ and C++/CLI".
Not because some evil "hall monitors" just want to move your posts, but to give you a better chance to get an answer.
Just to complete.
IMO, making refactoring as well as intellisense for a managed language like C# is much easier than making the same for C++.
That because for C++ it should, for example, parse...
Visual C++ HAS an intellisense/autocomplete/go-to-definition that actually WORKS for programs written in C++.
Probably you refer to C++/CLI for which, AFAIK, there are some missing intellisense...
MFC uses a hook to catch the window creation and add in a map pairs of window handles and pointers to object.
Then, in the static window procedure, having a window handle, looks up in the map for...
Additional remarks.
Having again a look in your code, I've noticed that you are trying to draw in a control from its parent window class.
Generally, do not draw in a window (control or anything...
No, modifying MFC framework source code isn't a solution because isn't possible for you to rebuild MFC libraries.
Each time you want to change some default implementation, find a virtual function to...
Spy++ didn't show any child windows in a web page, simply because a web page doesn't contain any child window, but HTML elements.
As Igor already suggested, for IE use COM interface to enumerate...
If the main frame class is derived from CMDIFrameWndEx (Visual Studio 2008 and newer), the solution is much simpler: just override CMDIFrameWndEx::OnEraseMDIClientBackground.