From 47c19f7007a24ccf7e4be993255e36baff65b4ca Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sat, 13 Dec 2014 22:20:52 +0000 Subject: SendMessage(GetDlgItem -> SendDlgItemMessage 2 git-svn-id: http://svn.miranda-ng.org/main/trunk@11384 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/options/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp index 3fd4cbae16..7d5f72ba0e 100644 --- a/src/modules/options/options.cpp +++ b/src/modules/options/options.cpp @@ -170,7 +170,7 @@ static void SaveOptionsTreeState(HWND hdlg) tvi.cchTextMax = SIZEOF(str); tvi.hItem = TreeView_GetRoot(GetDlgItem(hdlg, IDC_PAGETREE)); while (tvi.hItem != NULL) { - if (SendMessageA(GetDlgItem(hdlg, IDC_PAGETREE), TVM_GETITEMA, 0, (LPARAM)&tvi)) { + if (SendDlgItemMessageA(hdlg, IDC_PAGETREE, TVM_GETITEMA, 0, (LPARAM)&tvi)) { mir_snprintf(buf, SIZEOF(buf), "%s%s", OPTSTATE_PREFIX, str); db_set_b(NULL, "Options", buf, (BYTE)((tvi.state & TVIS_EXPANDED) ? 1 : 0)); } -- cgit v1.2.3