-
Button handle
Hi,
I have a strange situation here. I manage to get a handle for a window (with API functions) and when I try to find the button in that window (with FindWindowEx API function) I get 0 as the handle. I have the right class and text for the button. Any idea on what it might be? I've also checked if the button is maybe in a subwindow, but it's not.
-
Re: Button handle
That window appears when a directory doesn't exist, so it kind of gets on top of the other windows (seems like it might be a modal window for that application it comes from). So maybe it's not possible to find controls for those modal windows?
-
Re: Button handle
Use ms spy++ to see the window heirachy. If its not viewable in spy++ then it could be drawn on and not a calssic control type style and you cant get it handle then.
-
Re: Button handle
It's OK now...somehow it works heh...I had breakpoints in my program earlier and then it behaved strangely...but now it seems to work fine :)
-
Re: Button handle
Ok cool.
Ps, dont forget to Resolve your thread so other members will know its solved. ;)