diff options
author | René Schümann <white06tiger@gmail.com> | 2014-04-10 23:34:27 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2014-04-10 23:34:27 +0000 |
commit | 9a4d6d236bcd294d77884441494c2e32f3817b11 (patch) | |
tree | 60a7e4bb2caed036999c37e55a41db6c8c4b71ce /plugins/SendScreenshotPlus/src/UAboutForm.cpp | |
parent | ab05a30ab1f725e421287bf8158508c3ba3eddd3 (diff) |
SendSS:
* improved GetFileName() to also handle Unix paths (Utils)
!* improved and fixed dialog, caused graphical issues before, also improved tab order (UMainForm, resource)
* improved resource.rc a bit. Now use defines for UInfoButtonClass styles
* replaced some mir_freeAndNil() calls with mir_free() where appreciated (UMainForm, UAboutForm)
* minor update to Dropbox support. no real change
git-svn-id: http://svn.miranda-ng.org/main/trunk@8939 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/UAboutForm.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/UAboutForm.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/SendScreenshotPlus/src/UAboutForm.cpp b/plugins/SendScreenshotPlus/src/UAboutForm.cpp index 65225104dd..1ce8c14b62 100644 --- a/plugins/SendScreenshotPlus/src/UAboutForm.cpp +++ b/plugins/SendScreenshotPlus/src/UAboutForm.cpp @@ -47,7 +47,6 @@ INT_PTR CALLBACK TfrmAbout::DlgTfrmAbout(HWND hWnd, UINT msg, WPARAM wParam, LPA { if (msg == WM_CTLCOLOREDIT || msg == WM_CTLCOLORSTATIC) { switch ( GetWindowLongPtr(( HWND )lParam, GWL_ID )) { - case IDC_WHITERECT: case IDC_CREDIT: case IDC_LICENSE: SetTextColor((HDC)wParam,GetSysColor(COLOR_WINDOWTEXT)); @@ -55,7 +54,6 @@ INT_PTR CALLBACK TfrmAbout::DlgTfrmAbout(HWND hWnd, UINT msg, WPARAM wParam, LPA default: return FALSE; } - SetBkColor((HDC)wParam, GetSysColor(COLOR_WINDOW)); return (LRESULT)GetStockObject(WHITE_BRUSH); //GetSysColorBrush(COLOR_WINDOW); } @@ -93,15 +91,15 @@ LRESULT TfrmAbout::wmInitdialog(WPARAM wParam, LPARAM lParam) { HRSRC hResInfo; DWORD ResSize; TCHAR oldTitle[256], newTitle[256]; - TCHAR* temp = NULL; + TCHAR* temp; TCHAR* pszTitle = NULL; // Headerbar TCHAR* pszPlug = mir_a2t(__PLUGIN_NAME); TCHAR* pszVer = mir_a2t(__VERSION_STRING_DOTS); GetDlgItemText( m_hWnd, IDC_HEADERBAR, oldTitle, SIZEOF( oldTitle )); mir_sntprintf( newTitle, SIZEOF(newTitle), oldTitle, pszPlug, pszVer ); - mir_freeAndNil(pszPlug); - mir_freeAndNil(pszVer); + mir_free(pszPlug); + mir_free(pszVer); SetDlgItemText( m_hWnd, IDC_HEADERBAR, newTitle ); SendMessage(GetDlgItem(m_hWnd, IDC_HEADERBAR), WM_SETICON, ICON_BIG, (LPARAM)Skin_GetIcon(ICO_COMMON_SSWINDOW1,1)); @@ -115,7 +113,7 @@ LRESULT TfrmAbout::wmInitdialog(WPARAM wParam, LPARAM lParam) { temp = mir_a2t(pszMsg); temp [ResSize] = 0; //LockResource is not NULL terminatet !! mir_tcsadd(pszTitle ,temp); - mir_freeAndNil(temp); + mir_free(temp); SetDlgItemText(m_hWnd,IDC_LICENSE, pszTitle); mir_freeAndNil(pszTitle); } @@ -128,7 +126,7 @@ LRESULT TfrmAbout::wmInitdialog(WPARAM wParam, LPARAM lParam) { temp = mir_a2t(pszMsg); temp [ResSize] = 0; //LockResource is not NULL terminatet !! mir_tcsadd(pszTitle ,temp); - mir_freeAndNil(temp); + mir_free(temp); SetDlgItemText(m_hWnd,IDC_CREDIT, pszTitle); mir_freeAndNil(pszTitle); } |