VC++ DefWindowProc Problem
Posted on 2003-02-24
I'm fairly new to the .net environment, but comfortable with C++.
I am experiencing something bizarre and looking for help. The .net wizard creates a template for a working application. That template works fine. I am trying to abstract the windows into actual classes - and have most of it working ... except the following.
I assume the default behaviour for the cursor is to change shape when hovering over something, like a border. That still works. What doesn't work is what happens when I drag the mouse back into the client area. The cursor doesn't change to a pointer. If I take the mouse above the client area - into the window's titlebar, it changes to a pointer. If I resize the upper left or right corners, then cross into the client area, I am fine. The cursor is a pointer.
This tells me that the default window proc is being called correctly. And, this is happening before I'm diverting calls to member methods. In other words, I'm not yet leaving the static callback function.
So to be specific, if I start the small exe and the mouse is over it, it becomes an hourglass and stays that way. If I move to the edge, the mouse turns into something like <----> while its over the border, but when I move back over the client area ... it doesn't change back. If I do move to the titlebar of the window, the mouse correctly turns into a pointer.
It seems to me it related to the client area and I have inadvertently turned something off? Maybe the parameters to WNDCLASSEX ?