diff options
author | George Hazan <george.hazan@gmail.com> | 2016-05-11 20:46:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-05-11 20:46:18 +0000 |
commit | ba62eab90e0ff7741dfb2c6ad0be83521ac518df (patch) | |
tree | cff95a49cdd4b140e543f436703ace1fd3eb5be0 /plugins/SmileyAdd/src/dlgboxsubclass.cpp | |
parent | 0c978ce1b09bbb96c96a987eab1a0ae52d2ae014 (diff) |
smiley button also removed from chat window in Scriver
git-svn-id: http://svn.miranda-ng.org/main/trunk@16819 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/dlgboxsubclass.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/dlgboxsubclass.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/SmileyAdd/src/dlgboxsubclass.cpp b/plugins/SmileyAdd/src/dlgboxsubclass.cpp index 7f8e13779a..2f6663f051 100644 --- a/plugins/SmileyAdd/src/dlgboxsubclass.cpp +++ b/plugins/SmileyAdd/src/dlgboxsubclass.cpp @@ -71,13 +71,16 @@ public: RECT CalcSmileyButtonPos(void)
{
RECT rect;
- POINT pt;
-
GetWindowRect(LButton, &rect);
+
+ POINT pt;
pt.y = rect.top;
+ MUUID muidScriver = { 0x84636f78, 0x2057, 0x4302, { 0x8a, 0x65, 0x23, 0xa1, 0x6d, 0x46, 0x84, 0x4c } };
+ int iShift = (IsPluginLoaded(muidScriver)) ? 28 : -28;
+
if ((GetWindowLongPtr(LButton, GWL_STYLE) & WS_VISIBLE) != 0)
- pt.x = rect.left - 28;
+ pt.x = rect.left + iShift;
else
pt.x = rect.left;
@@ -270,6 +273,8 @@ static int MsgDlgHook(WPARAM, LPARAM lParam) msgwnd->REdit = wndEvtData->hwndLog;
msgwnd->MEdit = wndEvtData->hwndInput;
msgwnd->LButton = GetDlgItem(wndEvtData->hwndWindow, MI_IDC_ADD);
+ if (msgwnd->LButton == NULL)
+ msgwnd->LButton = GetDlgItem(wndEvtData->hwndWindow, 5019);
// Get the protocol for this contact to display correct smileys.
char *protonam = GetContactProto(DecodeMetaContact(msgwnd->hContact));
|