DestroyWindow Issues
-
I'm using CFormView in my program, and in one of my handlers, I open a new view and attempt to close the current. I call DestroyWindow() to kill the window. When I run it, the new form opens and the old one ends up behind it, but doesn't close. Everything inside the form turns to white, but the frame around it stays and can be repositioned as it normally does. It's as if the form itself has closed, but it has left the frame behind. Has anyone seen this? I've also tried posting a WM_CLOSE message, but that does nothing at all. Can someone please help?
-
I'm using CFormView in my program, and in one of my handlers, I open a new view and attempt to close the current. I call DestroyWindow() to kill the window. When I run it, the new form opens and the old one ends up behind it, but doesn't close. Everything inside the form turns to white, but the frame around it stays and can be repositioned as it normally does. It's as if the form itself has closed, but it has left the frame behind. Has anyone seen this? I've also tried posting a WM_CLOSE message, but that does nothing at all. Can someone please help?
Are you destroying the view, or its frame? Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
-
Are you destroying the view, or its frame? Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
-
GetParentFrame()->DestroyWindow(); Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
-
GetParentFrame()->DestroyWindow(); Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?