修复重复初始化UI界面时,对象属性失效导致的崩溃-汉王反馈

This commit is contained in:
gb 2023-03-08 18:21:25 +08:00
parent 64465395c3
commit d06962cb88
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ dlg_base::~dlg_base()
{
if (IsWindow(hwnd_))
{
SetPropW(hwnd_, dlg_base::prop_name.c_str(), NULL);
//if (GetCurrentThreadId() == GetWindowThreadProcessId(hwnd_, NULL))
DestroyWindow(hwnd_);
}