summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/CSend.cpp
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-12-25 00:30:57 +0000
committerRené Schümann <white06tiger@gmail.com>2014-12-25 00:30:57 +0000
commita58980cb6fcfb7fb81696a72546c1fc4c82ed4f0 (patch)
tree1de49cb03d5c9c3bb10f458e9affd29d310ff547 /plugins/SendScreenshotPlus/src/CSend.cpp
parentc0846ad8541a49f1467d32d3208df9671779f5b8 (diff)
SendSS:
- removed mir_icolib and replaced with direct calls (using defines to simplify usage, improved performance) * improved icon define names * renamed ssClose.ico => ssCancel.ico to better reflect its use * slight improvement to ssEditOn.ico !!! this change dramatically changed SendSS's internal icon layout, iconpacks for SendSS must to be adjusted git-svn-id: http://svn.miranda-ng.org/main/trunk@11610 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSend.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/CSend.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSend.cpp b/plugins/SendScreenshotPlus/src/CSend.cpp
index cd6aaa856c..aa15b08785 100644
--- a/plugins/SendScreenshotPlus/src/CSend.cpp
+++ b/plugins/SendScreenshotPlus/src/CSend.cpp
@@ -87,13 +87,13 @@ void CSend::SetContact(MCONTACT hContact) {
INT_PTR CALLBACK CSend::ResultDialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam){
switch(uMsg){
case WM_INITDIALOG:{
- SendMessage(hwndDlg,WM_SETICON,ICON_BIG,(LPARAM)Skin_GetIcon(ICO_COMMON_SSWINDOW1,1));
+ SendMessage(hwndDlg,WM_SETICON,ICON_BIG,(LPARAM)GetIcon(ICO_MAIN));
CSend* self=(CSend*)lParam;
TCHAR* tmp=mir_tstrdup(TranslateT("Resulting URL from\n"));
mir_tcsadd(tmp,self->m_pszSendTyp);
SetDlgItemText(hwndDlg,IDC_HEADERBAR,tmp);
mir_free(tmp);
- SendDlgItemMessage(hwndDlg,IDC_HEADERBAR,WM_SETICON,ICON_BIG,(LPARAM)Skin_GetIcon(ICO_COMMON_ARROWR,1));
+ SendDlgItemMessage(hwndDlg,IDC_HEADERBAR,WM_SETICON,ICON_BIG,(LPARAM)GetIconBtn(ICO_BTN_ARROWR));
SetDlgItemTextA(hwndDlg,ID_edtURL,self->m_URL);
if(self->m_URLthumb){
SetDlgItemTextA(hwndDlg,ID_edtURLthumb,self->m_URLthumb);
@@ -107,9 +107,9 @@ INT_PTR CALLBACK CSend::ResultDialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LP
SetDlgItemText(hwndDlg,ID_bvlDesc,self->m_ErrorTitle);
else
SetDlgItemText(hwndDlg,ID_bvlDesc,self->m_pszFileDesc);
- SendDlgItemMessage(hwndDlg,IDOK,BM_SETIMAGE,IMAGE_ICON,(LPARAM)Skin_GetIcon(ICO_BTN_COPY));
+ SendDlgItemMessage(hwndDlg,IDOK,BM_SETIMAGE,IMAGE_ICON,(LPARAM)GetIconBtn(ICO_BTN_COPY));
SendDlgItemMessage(hwndDlg,IDOK,BUTTONTRANSLATE,0,0);
- SendDlgItemMessage(hwndDlg,IDCANCEL,BM_SETIMAGE,IMAGE_ICON,(LPARAM)Skin_GetIcon(ICO_BTN_CANCEL));
+ SendDlgItemMessage(hwndDlg,IDCANCEL,BM_SETIMAGE,IMAGE_ICON,(LPARAM)GetIconBtn(ICO_BTN_CANCEL));
SendDlgItemMessage(hwndDlg,IDCANCEL,BUTTONTRANSLATE,0,0);
for(int i=ID_btnCopy; i<=ID_btnThumbBBC2; ++i){
SendDlgItemMessage(hwndDlg,i,BUTTONSETASTHEMEDBTN,0,0);
@@ -117,16 +117,16 @@ INT_PTR CALLBACK CSend::ResultDialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LP
switch(i){
case ID_btnCopy:
case ID_btnThumbCopy:
- SendDlgItemMessage(hwndDlg,i,BM_SETIMAGE,IMAGE_ICON,(LPARAM)Skin_GetIcon(ICO_BTN_COPY));
+ SendDlgItemMessage(hwndDlg,i,BM_SETIMAGE,IMAGE_ICON,(LPARAM)GetIconBtn(ICO_BTN_COPY));
SendDlgItemMessage(hwndDlg,i,BUTTONADDTOOLTIP,(WPARAM)LPGENT("Copy"),BATF_TCHAR);
break;
case ID_btnBBC:
case ID_btnThumbBBC:
- SendDlgItemMessage(hwndDlg,i,BM_SETIMAGE,IMAGE_ICON,(LPARAM)Skin_GetIcon(ICO_BTN_BBC));
+ SendDlgItemMessage(hwndDlg,i,BM_SETIMAGE,IMAGE_ICON,(LPARAM)GetIconBtn(ICO_BTN_BBC));
SendDlgItemMessage(hwndDlg,i,BUTTONADDTOOLTIP,(WPARAM)LPGENT("Copy BBCode"),BATF_TCHAR);
break;
default:
- SendDlgItemMessage(hwndDlg,i,BM_SETIMAGE,IMAGE_ICON,(LPARAM)Skin_GetIcon(ICO_BTN_BBC2));
+ SendDlgItemMessage(hwndDlg,i,BM_SETIMAGE,IMAGE_ICON,(LPARAM)GetIconBtn(ICO_BTN_BBCLNK));
SendDlgItemMessage(hwndDlg,i,BUTTONADDTOOLTIP,(WPARAM)LPGENT("Copy BBCode w/ link"),BATF_TCHAR);
}
}
@@ -394,7 +394,7 @@ void CSend::Error(LPCTSTR pszFormat, ...) {
memset(&m_box, 0, sizeof(MSGBOX));
m_box.cbSize = sizeof(MSGBOX);
m_box.hParent = NULL;
- m_box.hiLogo = Skin_GetIcon(ICO_COMMON_SSWINDOW1);
+ m_box.hiLogo = GetIcon(ICO_MAIN);
m_box.hiMsg = NULL;
m_box.ptszTitle = m_ErrorTitle;
m_box.ptszMsg = m_ErrorMsg;