why SubclassWindow fails? [modified]
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
In which case CWnd::SubclassWindow(HWND DocumentList) fails, I have locally declared and initialized DocumentList which is used as the the parameter?
Software Developer Sanjay Khapre
modified on Wednesday, January 7, 2009 10:03 AM
It can fail if it gets a non-valid HWND as parameter (like for example NULL) or if it gets a window that already has something attached to it (instance of another CWnd derived class). These are what i can think of now. But place a breakpoint, and step into that method and just trace down where it fails.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <