The CWnd dtor destroys the window that the CWnd is managing, so when bnPlay goes out of scope, the button gets destroyed. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD