summaryrefslogtreecommitdiff
path: root/plugins/Variables
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Variables')
-rw-r--r--plugins/Variables/src/help.cpp12
-rw-r--r--plugins/Variables/src/parse_system.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Variables/src/help.cpp b/plugins/Variables/src/help.cpp
index 62cce73d33..53c313b153 100644
--- a/plugins/Variables/src/help.cpp
+++ b/plugins/Variables/src/help.cpp
@@ -58,17 +58,17 @@ static INT_PTR CALLBACK extratextDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPA
case VARM_SETEXTRATEXT:
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT,
- SendMessage(GetDlgItem(hwndDlg, IDC_EXTRATEXT), WM_SETTEXT, wParam, lParam));
+ SendDlgItemMessage(hwndDlg, IDC_EXTRATEXT, WM_SETTEXT, wParam, lParam));
return TRUE;
case VARM_GETEXTRATEXTLENGTH:
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT,
- SendMessage(GetDlgItem(hwndDlg, IDC_EXTRATEXT), WM_GETTEXTLENGTH, wParam, lParam));
+ SendDlgItemMessage(hwndDlg, IDC_EXTRATEXT, WM_GETTEXTLENGTH, wParam, lParam));
return TRUE;
case VARM_GETEXTRATEXT:
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT,
- SendMessage(GetDlgItem(hwndDlg, IDC_EXTRATEXT), WM_GETTEXT, wParam, lParam));
+ SendDlgItemMessage(hwndDlg, IDC_EXTRATEXT, WM_GETTEXT, wParam, lParam));
return TRUE;
case WM_SIZE:
@@ -737,17 +737,17 @@ static INT_PTR CALLBACK inputDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM
case VARM_SETINPUTTEXT:
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT,
- SendMessage(GetDlgItem(hwndDlg, IDC_TESTSTRING), WM_SETTEXT, wParam, lParam));
+ SendDlgItemMessage(hwndDlg, IDC_TESTSTRING, WM_SETTEXT, wParam, lParam));
return TRUE;
case VARM_GETINPUTTEXTLENGTH:
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT,
- SendMessage(GetDlgItem(hwndDlg, IDC_TESTSTRING), WM_GETTEXTLENGTH, wParam, lParam));
+ SendDlgItemMessage(hwndDlg, IDC_TESTSTRING, WM_GETTEXTLENGTH, wParam, lParam));
return TRUE;
case VARM_GETINPUTTEXT:
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT,
- SendMessage(GetDlgItem(hwndDlg, IDC_TESTSTRING), WM_GETTEXT, wParam, lParam));
+ SendDlgItemMessage(hwndDlg, IDC_TESTSTRING, WM_GETTEXT, wParam, lParam));
return TRUE;
case WM_TIMER:
diff --git a/plugins/Variables/src/parse_system.cpp b/plugins/Variables/src/parse_system.cpp
index c6d1fdb765..6c18b39846 100644
--- a/plugins/Variables/src/parse_system.cpp
+++ b/plugins/Variables/src/parse_system.cpp
@@ -347,7 +347,7 @@ static TCHAR *parseFindWindow(ARGUMENTSINFO *ai)
if (hWin == NULL)
return NULL;
- int len = SendMessage(hWin, WM_GETTEXTLENGTH, 0, 0);
+ int len = GetWindowTextLength(hWin);
if (len == 0)
return NULL;