Skip to content

Commit ff44596

Browse files
fix(SmartScale): remove subclass safely when the lifetime of scaler is less than form
1 parent 9e70fa1 commit ff44596

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

QSSmartScale/src/SmartScale.ecode

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
pSubclassProcHelper = 到整数 (&SmartScale_SubclassProcHelper)
1212
.子程序 _销毁, , , 当基于本类的对象被销毁前,此方法会被自动调用
1313

14+
.如果真 (record.hWnd != 0)
15+
RemoveWindowSubclass (record.hWnd, pSubclassProcHelper, ThisPtr ())
16+
.如果真结束
1417

1518
.子程序 SubclassProc, 整数型, , 注意位置不要改变,汇编代码依赖虚函数表中位置定位函数
1619
.参数 hWnd, 整数型

0 commit comments

Comments
 (0)