WinAPI - TreeView - case WM_NOTIFY lazarus / 67-Windows ---------------------------------------------------------------------- elite001 · 2016-01-17 13:43 hello everyone.. sorry for my english..  i've got a trouble.. i write treeview-automation dll... in "Case msg of" section of "wndproc function" i need to use WM_NOTIFY... but nothing works.. even Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  WM_NOTIFY: exit;   - i cant click on TreeView Node and mouse cursor above created form becomes bothside-arrow or standby (windows7)... if i comment this switch - i can navigate by treeview, click on nodes etc.. ---  what to do and who is guilty  thank you! Laz 1.4.4 x86 Win7 x64 ---------------------------------------------------------------------- engkin · 2016-01-17 14:37 When you are done processing WM_NOTIFY, call the original WndProc: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   Result := CallWindowProc(OrgWndProc, aHwnd, uMsg, wParam, lParam);  or the default WndProc: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   Result := DefWindowProc(aHwnd, uMsg, wParam, lParam) ---------------------------------------------------------------------- elite001 · 2016-01-17 21:13 Quote from: engkin on January 17, 2016, 03:37:54 pmWhen you are done processing WM_NOTIFY, call the original WndProc: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   Result := CallWindowProc(OrgWndProc, aHwnd, uMsg, wParam, lParam);  or the default WndProc: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   Result := DefWindowProc(aHwnd, uMsg, wParam, lParam)  thats great.. thank you.. ))) all works properly, (^_^) Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function OrdWndProc (wnd: hwnd; msg: integer; wparam: wparam; lparam: lparam):lresult;stdcall;begin  ...  result := defwindowproc(wnd,msg,wparam,lparam);end;                                                ...case msg of  WM_NOTIFY:  begin    Result := CallWindowProc(@OrdWndProc, wnd, Msg, wParam, lParam);  end;else  result := defwindowproc(wnd,msg,wparam,lparam);...