summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/modplus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-08 14:55:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-08 14:55:45 +0000
commit5a19cc3dfc0e40d61b860dbeeedf802a5047a667 (patch)
tree2d1d2f713e5f63c12f2d38edd6525c7e9074a91a /plugins/TabSRMM/src/modplus.cpp
parent3aa29ef3d7220de7080eae79b4dc31ef99bb4015 (diff)
- MBF_OWNERSTATE option moved to the public header;
- client icon drawing moved to FingerPrint; - old code in tabSRMM completely wiped out; git-svn-id: http://svn.miranda-ng.org/main/trunk@4389 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/modplus.cpp')
-rw-r--r--plugins/TabSRMM/src/modplus.cpp41
1 files changed, 1 insertions, 40 deletions
diff --git a/plugins/TabSRMM/src/modplus.cpp b/plugins/TabSRMM/src/modplus.cpp
index bc8310eb7b..7288c5b986 100644
--- a/plugins/TabSRMM/src/modplus.cpp
+++ b/plugins/TabSRMM/src/modplus.cpp
@@ -49,24 +49,8 @@ int g_bStartup=0;
BOOL g_bIMGtagButton;
-static char* getMirVer(HANDLE hContact)
+static TCHAR* getMenuEntry(int i)
{
- char *szProto = NULL;
- char *msg = NULL;
- DBVARIANT dbv = {0};
-
- szProto = GetContactProto(hContact);
- if ( !szProto )
- return (NULL);
-
- if ( !db_get_s(hContact, szProto, "MirVer", &dbv)) {
- msg=mir_strdup(dbv.pszVal);
- db_free(&dbv);
- }
- return (msg);
-}
-
-static TCHAR* getMenuEntry(int i) {
TCHAR *msg = NULL;
char MEntry[256] = {'\0'};
DBVARIANT dbv = {0};
@@ -79,29 +63,6 @@ static TCHAR* getMenuEntry(int i) {
return (msg);
}
-int ChangeClientIconInStatusBar(const TWindowData *dat)
-{
- if (!ServiceExists(MS_FP_GETCLIENTICON))
- return(S_FALSE);
-
- char *msg = getMirVer(dat->hContact);
-
- if ( !msg )
- return (S_FALSE);
-
- StatusIconData sid = {0};
-
- sid.cbSize = sizeof(sid);
- sid.szModule = (char *)"tabmodplus";
- sid.hIcon = sid.hIconDisabled = dat->hClientIcon;
- sid.dwId = 1;
- sid.szTooltip = msg;
- sid.flags = MBF_OWNERSTATE;
- CallService(MS_MSG_MODIFYICON,(WPARAM)dat->hContact, (LPARAM)&sid);
- mir_free(msg);
- return (S_OK);
-}
-
static int RegisterCustomButton(WPARAM wParam,LPARAM lParam)
{
if ( ServiceExists(MS_BB_ADDBUTTON)) {