diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/src/mir_core.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/ui_utils.cpp | 6 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 489473cc41..f42a795ad6 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1066,7 +1066,6 @@ mir_wstrcmpi @280 ?UpdateStatusBar@CProtoIntDlgBase@@AAEXXZ @1067 NONAME
?WindowSubscribe@PROTO_INTERFACE@@QAEXPAUHWND__@@@Z @1068 NONAME
?WindowUnsubscribe@PROTO_INTERFACE@@QAEXPAUHWND__@@@Z @1069 NONAME
-?cmp@CCtrlBase@@SAHPBV1@0@Z @1070 NONAME
ProtoWindowAdd @1071 NONAME
ProtoWindowRemove @1072 NONAME
Proto_IsProtocolLoaded @1073 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index cd8e726c37..b2adec82c1 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1066,7 +1066,6 @@ mir_wstrcmpi @280 ?UpdateStatusBar@CProtoIntDlgBase@@AEAAXXZ @1067 NONAME
?WindowSubscribe@PROTO_INTERFACE@@QEAAXPEAUHWND__@@@Z @1068 NONAME
?WindowUnsubscribe@PROTO_INTERFACE@@QEAAXPEAUHWND__@@@Z @1069 NONAME
-?cmp@CCtrlBase@@SAHPEBV1@0@Z @1070 NONAME
ProtoWindowAdd @1071 NONAME
ProtoWindowRemove @1072 NONAME
Proto_IsProtocolLoaded @1073 NONAME
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index 3249499003..deb0ed00ed 100644 --- a/src/mir_core/src/ui_utils.cpp +++ b/src/mir_core/src/ui_utils.cpp @@ -41,8 +41,12 @@ static LIST<CCtrlBase> arControls(10, CompareControls); #pragma comment(lib, "uxtheme")
+static int CompareControlId(const CCtrlBase *c1, const CCtrlBase *c2)
+{ return c1->GetCtrlId() - c2->GetCtrlId();
+}
+
CDlgBase::CDlgBase(HINSTANCE hInst, int idDialog)
- : m_controls(1, CCtrlBase::cmp)
+ : m_controls(1, CompareControlId)
{
m_hInst = hInst;
m_idDialog = idDialog;
|