diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-08 22:00:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-08 22:00:25 +0000 |
commit | 18aec330d11e9e5acdfd032e5f614beed08eaa0c (patch) | |
tree | e31c1794a91738740537092b663ff7e567459ca3 /plugins/Clist_mw/src/cluiservices.cpp | |
parent | 3be534c7528386c00bc31fca9c15b87d214f5cc1 (diff) |
fix for clicking on extra icons (for all plugins but clist nicer+)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2250 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_mw/src/cluiservices.cpp')
-rw-r--r-- | plugins/Clist_mw/src/cluiservices.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_mw/src/cluiservices.cpp b/plugins/Clist_mw/src/cluiservices.cpp index 38e19ee46d..dadea72c01 100644 --- a/plugins/Clist_mw/src/cluiservices.cpp +++ b/plugins/Clist_mw/src/cluiservices.cpp @@ -68,7 +68,7 @@ void CluiProtocolStatusChanged(int parStatus, const char* szProto) SendMessage(pcli->hwndStatus,SB_SETBKCOLOR,0,DBGetContactSettingDword(0,"CLUI","SBarBKColor",CLR_DEFAULT));
partWidths = (int*)alloca((protoCount+1)*sizeof(int));
//partWidths[0] = FirstIconOffset;
- if (DBGetContactSettingByte(NULL,"CLUI","UseOwnerDrawStatusBar",0)||DBGetContactSettingByte(NULL,"CLUI","EqualSections",1))
+ if ( db_get_b(NULL,"CLUI","UseOwnerDrawStatusBar",0)||db_get_b(NULL,"CLUI","EqualSections",1))
{
RECT rc;
int toshow, part;
@@ -104,7 +104,7 @@ void CluiProtocolStatusChanged(int parStatus, const char* szProto) else {
HDC hdc;
SIZE textSize;
- BYTE showOpts = DBGetContactSettingByte(NULL,"CLUI","SBarShow",5);
+ BYTE showOpts = db_get_b(NULL,"CLUI","SBarShow",5);
DWORD extraspace = DBGetContactSettingDword(NULL,"StatusBar","BkExtraSpace",0);
DWORD startoffset = DBGetContactSettingDword(NULL,"StatusBar","FirstIconOffset",0);
int x;
@@ -153,7 +153,7 @@ void CluiProtocolStatusChanged(int parStatus, const char* szProto) SendMessage(pcli->hwndStatus,SB_SETPARTS,partCount,(LPARAM)partWidths);
flags = SBT_OWNERDRAW;
- if ( !DBGetContactSettingByte(NULL, "CLUI", "SBarBevel", 1))
+ if ( !db_get_b(NULL, "CLUI", "SBarBevel", 1))
flags |= SBT_NOBORDERS;
for (partCount = 0, i = 0; i<protoCount; i++) { //count down since built in ones tend to go at the end
|