void container_window::destroy() { DestroyWindow(wnd_host); class_release(); }
void container_window::destroy() //if destroying someother way, you should make sure you call class_release() properly { DestroyWindow(wnd_host); class_release(); }