diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-05 21:55:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-05 21:55:21 +0000 |
commit | 2aabf6594cb0fb4f8db16771c988bf5a6eab2c4b (patch) | |
tree | 202865579328cc407dc249ca6ed3ea80f9f6f80a /src/modules/fonts | |
parent | 9de8f2a1584b810d0fc651704f7f732dc0943d86 (diff) |
Unicode windows procedure, suddenly...
git-svn-id: http://svn.miranda-ng.org/main/trunk@13456 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/fonts')
-rw-r--r-- | src/modules/fonts/FontOptions.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/modules/fonts/FontOptions.cpp b/src/modules/fonts/FontOptions.cpp index 2d290d21c2..0a21cd878a 100644 --- a/src/modules/fonts/FontOptions.cpp +++ b/src/modules/fonts/FontOptions.cpp @@ -1157,22 +1157,18 @@ static INT_PTR CALLBACK DlgProcLogOptions(HWND hwndDlg, UINT msg, WPARAM wParam, if (((LPNMHDR) lParam)->idFrom == IDC_FONTGROUP) {
switch(((NMHDR*)lParam)->code) {
- case TVN_SELCHANGEDA: // !!!! This needs to be here - both !!
- case TVN_SELCHANGEDW:
+ case TVN_SELCHANGED:
SendMessage(hwndDlg, UM_SETFONTGROUP, 0, 0);
break;
- case TVN_DELETEITEMA: // no idea why both TVN_SELCHANGEDA/W should be there but let's keep this both too...
- case TVN_DELETEITEMW:
- {
- TreeItem *treeItem = (TreeItem *)(((LPNMTREEVIEW)lParam)->itemOld.lParam);
- if (treeItem) {
- mir_free(treeItem->groupName);
- mir_free(treeItem->paramName);
- mir_free(treeItem);
- }
- break;
+ case TVN_DELETEITEM:
+ TreeItem *treeItem = (TreeItem *)(((LPNMTREEVIEW)lParam)->itemOld.lParam);
+ if (treeItem) {
+ mir_free(treeItem->groupName);
+ mir_free(treeItem->paramName);
+ mir_free(treeItem);
}
+ break;
}
}
break;
|