diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-15 16:18:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-15 16:18:01 +0300 |
commit | 4d058c1bd49cb0214e452fea0a84bce2889b4434 (patch) | |
tree | 31cb00df5fc94f626447ba495123d2f2d8660b5f /src/mir_app | |
parent | 28ff0c36aee829b301d451ad232185c96e273f57 (diff) |
PROTO_INTERFACE::ReportSelfAvatarChanged = useful helper for working with avatars
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/mir_app.def | 1 | ||||
-rw-r--r-- | src/mir_app/src/mir_app64.def | 1 | ||||
-rw-r--r-- | src/mir_app/src/proto_utils.cpp | 5 |
3 files changed, 7 insertions, 0 deletions
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)
|