diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 22:20:52 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 22:20:52 +0000 |
commit | 47c19f7007a24ccf7e4be993255e36baff65b4ca (patch) | |
tree | b5a6f74d11446c7a66088334b3e566b07305c0c1 /src/modules/options/options.cpp | |
parent | 86ecbad7907401648a49139d196559a2d27ec53a (diff) |
SendMessage(GetDlgItem -> SendDlgItemMessage 2
git-svn-id: http://svn.miranda-ng.org/main/trunk@11384 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/options/options.cpp')
-rw-r--r-- | src/modules/options/options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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));
}
|