Forum > Windows
WinAPI - TreeView - case WM_NOTIFY
(1/1)
elite001:
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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- 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:
When you are done processing WM_NOTIFY, call the original WndProc:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- Result := CallWindowProc(OrgWndProc, aHwnd, uMsg, wParam, lParam);
or the default WndProc:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- Result := DefWindowProc(aHwnd, uMsg, wParam, lParam)
elite001:
--- Quote from: engkin on January 17, 2016, 03:37:54 pm ---When you are done processing WM_NOTIFY, call the original WndProc:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- Result := CallWindowProc(OrgWndProc, aHwnd, uMsg, wParam, lParam);
or the default WndProc:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- Result := DefWindowProc(aHwnd, uMsg, wParam, lParam)
--- End quote ---
thats great.. thank you.. )))
all works properly, (^_^)
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---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);...
Navigation
[0] Message Index