summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt/src
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-14 05:13:25 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-14 05:13:25 +0000
commitbc7df32e3b5a264c0eeb6a20b723cdab02cf7688 (patch)
tree1d5319a5cb712b9b56ad4834acc9a5198e6adb97 /plugins/WhenWasIt/src
parent0ff28f7c5ffaa46ed5b21bee965e66bb9108dfe2 (diff)
SetWindowText(GetDlgItem(...)) -> SetDlgItemText(...)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11391 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhenWasIt/src')
-rw-r--r--plugins/WhenWasIt/src/dlg_handlers.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/WhenWasIt/src/dlg_handlers.cpp b/plugins/WhenWasIt/src/dlg_handlers.cpp
index a2a8083483..b69891d543 100644
--- a/plugins/WhenWasIt/src/dlg_handlers.cpp
+++ b/plugins/WhenWasIt/src/dlg_handlers.cpp
@@ -192,17 +192,17 @@ INT_PTR CALLBACK DlgProcOptions(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
TCHAR buffer[1024];
_itot(commonData.daysInAdvance, buffer, 10);
- SetWindowText(GetDlgItem(hWnd, IDC_DAYS_IN_ADVANCE), buffer);
+ SetDlgItemText(hWnd, IDC_DAYS_IN_ADVANCE, buffer);
_itot(commonData.checkInterval, buffer, 10);
- SetWindowText(GetDlgItem(hWnd, IDC_CHECK_INTERVAL), buffer);
+ SetDlgItemText(hWnd, IDC_CHECK_INTERVAL, buffer);
mir_sntprintf(buffer, SIZEOF(buffer), _T("%d|%d"), commonData.popupTimeout, commonData.popupTimeoutToday);
- SetWindowText(GetDlgItem(hWnd, IDC_POPUP_TIMEOUT), buffer);
+ SetDlgItemText(hWnd, IDC_POPUP_TIMEOUT, buffer);
_itot(commonData.cSoundNearDays, buffer, 10);
- SetWindowText(GetDlgItem(hWnd, IDC_SOUND_NEAR_DAYS_EDIT), buffer);
+ SetDlgItemText(hWnd, IDC_SOUND_NEAR_DAYS_EDIT, buffer);
_itot(commonData.cDlgTimeout, buffer, 10);
- SetWindowText(GetDlgItem(hWnd, IDC_DLG_TIMEOUT), buffer);
+ SetDlgItemText(hWnd, IDC_DLG_TIMEOUT, buffer);
_itot(commonData.daysAfter, buffer, 10);
- SetWindowText(GetDlgItem(hWnd, IDC_DAYS_AFTER), buffer);
+ SetDlgItemText(hWnd, IDC_DAYS_AFTER, buffer);
CheckDlgButton(hWnd, IDC_OPENINBACKGROUND, (commonData.bOpenInBackground) ? BST_CHECKED : BST_UNCHECKED);
@@ -881,7 +881,7 @@ INT_PTR CALLBACK DlgProcUpcoming(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar
const int MAX_SIZE = 512;
TCHAR buffer[MAX_SIZE];
mir_sntprintf(buffer, SIZEOF(buffer), (timeout != 2) ? TranslateT("Closing in %d seconds") : TranslateT("Closing in %d second"), --timeout);
- SetWindowText(GetDlgItem(hWnd, IDC_CLOSE), buffer);
+ SetDlgItemText(hWnd, IDC_CLOSE, buffer);
if (timeout <= 0)
SendMessage(hWnd, WM_CLOSE, 0, 0);