mIRC Homepage

Window Handle

Posted By: Man

Window Handle - 12/12/03 01:28 PM

It should be possible to get the handle of the static window on all custom windows. When Mr. K decided to add static windows ontop of the custom window he never made it possible to find its handle, makeing some dlls not work properly.

Also getting the handle of each dialog id would be nice. (eg the buttons,edit boxes, etc)
Posted By: Man

Re: Window Handle - 12/12/03 01:30 PM

Oh and also be able to create a window without this static window, or be able to adjust its size.
Posted By: saxon

Re: Window Handle - 12/12/03 01:33 PM

Ok, your talking about DLL's here, And you can easily get the handle of the static with a DLL.
Posted By: Man

Re: Window Handle - 12/12/03 01:40 PM

which dll?? I have been unable to find one, other than zwnd.dll but its got enough problems for me not to concider using it, and means I have to use lots of while loops.

Anyway I still this its a good addition even if it can be done with dlls

edit: Obviously the handle isn't of much use to pure mIRC scripting and would be used with dlls or possibly com objects, but that didnt stop $window(blabla).hwnd did it (And a dll can find this info out too :P)
Posted By: saxon

Re: Window Handle - 12/12/03 01:56 PM

I mean that a DLL which needs to manipulate the static should be finding the handle itself, based on the @window handle.

What DLL are you having trouble with?


(And no, I dont think It would be any harm if $window had .static property).
Posted By: Narusegawa_Naru

Re: Window Handle - 12/12/03 02:22 PM

im curious wich dll is having the problem. the static face has been around for many builds. I think the last 3 or so dll's ive written the static is understood.

I can see no harm in adding maybe an .swnd property but i think any dll that requires the scripter to pass a window handle is poorly coded. theres a plethera of means to get any handle to any control on any window just by using its @name (or name for dialogs).
Posted By: Man

Re: Window Handle - 12/12/03 03:06 PM

This problem doesn't lie in for dlls made for mIRC, but for dlls that pass information to something else. Like mci.dll which is a link to the Media Control Interface of windows. Now windows isn't required to find the static windows handle by itself. This is just an example, nHTMLn has its own problems with it, being with the mouse scroll doesn't work (If I remember removeing the static fixed this, cant remember though)
Posted By: Narusegawa_Naru

Re: Window Handle - 12/12/03 03:32 PM

yes im familiar with both dll's. both of wich were written prior to the static window. in the case of mci it wasnt meant for any window persay. indeed the video properties require it. I dont think either dll is being updated anymore so perhaps an swnd property is just what the dr ordered.
© 2022 mIRC Discussion Forums