How do I Stop Subclassing a windows message ???

How do stop subclassing a windows messages? My program is not shutting down properly...

void SubclassHWnd(IntPtr hWnd)
// hWnd is the window you want to subclass..., create a new
// delegate for the new wndproc
newWndProc = new Win32WndProc(MyWndProc);
// subclass
oldWndProc = SetWindowLong(hWnd, GWL_WNDPROC, newWndProc);


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!