summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-20 08:45:12 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-20 08:45:12 +0000
commit233a94aec10000c5f7d29592def9dfbc97e664c3 (patch)
treea89f1cf9ccebd3977565ea84fe2302ae76a41324 /plugins/SecureIM/src
parent9da1e690537176096262a7eaf274944b1b782e1e (diff)
fixed tabs backgroung color
git-svn-id: http://svn.miranda-ng.org/main/trunk@6134 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src')
-rw-r--r--plugins/SecureIM/src/commonheaders.h1
-rw-r--r--plugins/SecureIM/src/options.cpp11
-rw-r--r--plugins/SecureIM/src/resource.h34
3 files changed, 18 insertions, 28 deletions
diff --git a/plugins/SecureIM/src/commonheaders.h b/plugins/SecureIM/src/commonheaders.h
index e335fddb9b..dc4797b7ce 100644
--- a/plugins/SecureIM/src/commonheaders.h
+++ b/plugins/SecureIM/src/commonheaders.h
@@ -25,6 +25,7 @@
#include <commdlg.h>
#include <commctrl.h>
#include <shlwapi.h>
+#include <Uxtheme.h>
#include <malloc.h>
#include <process.h>
diff --git a/plugins/SecureIM/src/options.cpp b/plugins/SecureIM/src/options.cpp
index 8c5aa20bbb..7e7d7aece5 100644
--- a/plugins/SecureIM/src/options.cpp
+++ b/plugins/SecureIM/src/options.cpp
@@ -91,28 +91,25 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
switch(msg) {
case WM_INITDIALOG:
{
- RECT rcClient;
- GetClientRect(hwnd, &rcClient);
-
iInit = TRUE;
tci.mask = TCIF_PARAM|TCIF_TEXT;
tci.lParam = (LPARAM)CreateDialog(g_hInst,MAKEINTRESOURCE(IDD_TAB_GENERAL),hwnd,DlgProcOptionsGeneral);
tci.pszText = (LPSTR)sim201;
TC_InsertItem(GetDlgItem(hwnd, IDC_OPTIONSTAB), 0, &tci);
- MoveWindow((HWND)tci.lParam,5,26,rcClient.right-8,rcClient.bottom-29,1);
+ EnableThemeDialogTexture((HWND)tci.lParam, ETDT_ENABLETAB);
tci.lParam = (LPARAM)CreateDialog(g_hInst,MAKEINTRESOURCE(IDD_TAB_PROTO),hwnd,DlgProcOptionsProto);
tci.pszText = (LPSTR)sim202;
TC_InsertItem(GetDlgItem(hwnd, IDC_OPTIONSTAB), 2, &tci);
- MoveWindow((HWND)tci.lParam,5,26,rcClient.right-8,rcClient.bottom-29,1);
+ EnableThemeDialogTexture((HWND)tci.lParam, ETDT_ENABLETAB);
ShowWindow((HWND)tci.lParam, SW_HIDE);
if (bPGP && bPGPloaded) {
tci.lParam = (LPARAM)CreateDialog(g_hInst,MAKEINTRESOURCE(IDD_TAB_PGP),hwnd,DlgProcOptionsPGP);
tci.pszText = (LPSTR)sim214;
TC_InsertItem(GetDlgItem(hwnd, IDC_OPTIONSTAB), 3, &tci);
- MoveWindow((HWND)tci.lParam,5,26,rcClient.right-8,rcClient.bottom-29,1);
+ EnableThemeDialogTexture((HWND)tci.lParam, ETDT_ENABLETAB);
ShowWindow((HWND)tci.lParam, SW_HIDE);
}
@@ -120,7 +117,7 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
tci.lParam = (LPARAM)CreateDialog(g_hInst,MAKEINTRESOURCE(IDD_TAB_GPG),hwnd,DlgProcOptionsGPG);
tci.pszText = (LPSTR)sim226;
TC_InsertItem(GetDlgItem(hwnd, IDC_OPTIONSTAB), 4, &tci);
- MoveWindow((HWND)tci.lParam,5,26,rcClient.right-8,rcClient.bottom-29,1);
+ EnableThemeDialogTexture((HWND)tci.lParam, ETDT_ENABLETAB);
ShowWindow((HWND)tci.lParam, SW_HIDE);
}
diff --git a/plugins/SecureIM/src/resource.h b/plugins/SecureIM/src/resource.h
index 8a24991218..79f9a8ed5b 100644
--- a/plugins/SecureIM/src/resource.h
+++ b/plugins/SecureIM/src/resource.h
@@ -2,8 +2,8 @@
// Microsoft Visual C++ generated include file.
// Used by resource.rc
//
-#define ID_FIRSTICON 1
-#define ID_LASTICON 17
+#define ID_FIRSTICON 1
+#define ID_LASTICON 17
#define ID_DISABLED 111
#define ID_ENABLED 112
#define ID_ALWAYS 113
@@ -17,21 +17,18 @@
#define ID_DELPUBL 121
#define ID_EXPPUBL 122
#define ID_IMPPUBL 123
-
-#define ID_SIM_NATIVE 130
+#define ID_SIM_NATIVE 130
#define ID_SIM_PGP 131
#define ID_SIM_GPG 132
#define ID_SIM_RSAAES 133
#define ID_SIM_RSA 134
-
-#define IDM_CLIST0 150
-#define IDM_CLIST1 151
-#define IDM_CLIST2 152
-#define IDM_CLIST01 153
-#define IDM_CLIST02 154
-#define IDM_CLIST11 155
-#define IDM_CLIST12 156
-
+#define IDM_CLIST0 150
+#define IDM_CLIST1 151
+#define IDM_CLIST2 152
+#define IDM_CLIST01 153
+#define IDM_CLIST02 154
+#define IDM_CLIST11 155
+#define IDM_CLIST12 156
#define IDD_OPTIONSTAB 501
#define IDD_TAB_GENERAL 502
#define IDD_TAB_PROTO 503
@@ -39,9 +36,8 @@
#define IDD_TAB_GPG 505
#define IDD_TAB_MESSAGES 506
#define IDD_POPUP 507
-#define IDD_PSK 508
-#define IDD_PASSPHRASE 509
-
+#define IDD_PSK 508
+#define IDD_PASSPHRASE 509
#define IDC_STD_USERLIST 1001
#define IDC_TIMEOUT 1002
#define IDC_BACKKEY 1003
@@ -98,12 +94,10 @@
#define IDC_RSA_EXP 1055
#define IDC_RSA_EXPPRIV 1056
#define IDC_RSA_IMPPRIV 1057
-#define IDC_PASSPHRASE 1058
-
+#define IDC_PASSPHRASE 1058
#define IDC_NO_PGP 1100
#define IDC_PGP 1101
#define IDC_GPG 1102
-
#define IDC_PGP_SDK 1200
#define IDC_PGP_USERLIST 1201
#define IDC_SET_KEYRINGS 1202
@@ -111,7 +105,6 @@
#define IDC_PGP_PRIVKEY 1204
#define IDC_LOAD_PRIVKEY 1205
#define IDC_NO_KEYRINGS 1206
-
#define IDC_GPGEXECUTABLE_EDIT 1300
#define IDC_BROWSEEXECUTABLE_BTN 1301
#define IDC_GPGHOME_EDIT 1302
@@ -125,7 +118,6 @@
#define IDC_SAVEPASS_CBOX 1310
#define IDC_TMPPATHON_CBOX 1311
#define IDC_GPGTMPPATH_EDIT 1312
-
#define ID_ENCRYPTION 40001
// Next default values for new objects