Hello. I am working on the QuickSwitch that sends a WM_COPYDATA request to all XYplorer HWNDs.
Why does XYplorer have so many unique child windows?
I noticed that each individual Xyplorer window and each sidebar has its own HWND, while for the same Directory Opus, any child window and panel has a HWND equivalent to the ancestor.
What is the reason for such difference and how can I filter the main XY window and child windows without constantly checking if there is an ancestor' HWND in the list of all child HWNDs?
Why does Xyplorer have so many child HWNDs?
Re: Why does Xyplorer have so many child HWNDs?
XY has a control that can directly get the path, even for dual panes.
For sending a WM_COPYDATA, you can know which is the main window from the number of window controls.
Windows 11 24H2 @100% 2560x1440
Re: Why does Xyplorer have so many child HWNDs?
It's a bad idea. You need to request a list of controls for each window, it's faster to request Ancestor (owner)... but I want fewer queries and checks, they are very slow...
BTW you can use my xyplorer theme and portable NPP configured for XYplorer and Autohotkey: https://github.com/JoyHak/awesome-notep ... s/releases
Re: Why does Xyplorer have so many child HWNDs?
I am using WM_COPYDATA with sending
.xys script, because I need to convert special paths and resolve variables.Does Dopus have such a control? I found
dopus.filedisplaycontainer, but every tab has this control, and it is impossible to determine the active tab and panel using it...Re: Why does Xyplorer have so many child HWNDs?
Thanks, but I am moving away from NPP.Raf wrote: ↑18 Apr 2025 20:06 BTW you can use my xyplorer theme and portable NPP configured for XYplorer and Autohotkey: https://github.com/JoyHak/awesome-notep ... s/releases
Address bar controls, you need to calculate...
Windows 11 24H2 @100% 2560x1440
Re: Why does Xyplorer have so many child HWNDs?
Address bar control 1 and address bar control 2 (AFAIK there is no specific control to get the path of the active pane.), you need to know the position of the currently focused control and calculate it, vertical dual pane, horizontal dual pane... Or find out if there is any other method.
Windows 11 24H2 @100% 2560x1440
XYplorer Beta Club