From 4d058c1bd49cb0214e452fea0a84bce2889b4434 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Jul 2019 16:18:01 +0300 Subject: PROTO_INTERFACE::ReportSelfAvatarChanged = useful helper for working with avatars --- src/mir_app/src/mir_app.def | 1 + src/mir_app/src/mir_app64.def | 1 + src/mir_app/src/proto_utils.cpp | 5 +++++ 3 files changed, 7 insertions(+) (limited to 'src/mir_app') diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index 892a952925..210f167b8f 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -684,3 +684,4 @@ ImageList_AddProtoIcon @773 ImageList_AddSkinIcon @774 Clist_GetGroup @775 Clist_SetGroup @776 +?ReportSelfAvatarChanged@PROTO_INTERFACE@@QAEXXZ @777 NONAME diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index 6db702af0e..132aa6225b 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -684,3 +684,4 @@ ImageList_AddProtoIcon @773 ImageList_AddSkinIcon @774 Clist_GetGroup @775 Clist_SetGroup @776 +?ReportSelfAvatarChanged@PROTO_INTERFACE@@QEAAXXZ @777 NONAME diff --git a/src/mir_app/src/proto_utils.cpp b/src/mir_app/src/proto_utils.cpp index 12d6ac1202..06b775cf7a 100644 --- a/src/mir_app/src/proto_utils.cpp +++ b/src/mir_app/src/proto_utils.cpp @@ -268,6 +268,11 @@ void PROTO_INTERFACE::WindowUnsubscribe(HWND hwnd) ///////////////////////////////////////////////////////////////////////////////////////// // avatar support +void PROTO_INTERFACE::ReportSelfAvatarChanged() +{ + CallService(MS_AV_REPORTMYAVATARCHANGED, (WPARAM)m_szModuleName); +} + MIR_APP_DLL(LPCTSTR) ProtoGetAvatarExtension(int format) { if (format == PA_FORMAT_PNG) -- cgit v1.2.3