Tech Support > Microsoft Windows > Development Resources > Does every windows which shows itself while working on any Windows O.S ( lets say Windows 2k) a registered one?
Does every windows which shows itself while working on any Windows O.S ( lets say Windows 2k) a registered one?
Posted by yogpjosh@gmail.com on February 4th, 2006


Hello All,
I am learning windows programming and using spy++ to view the class
names and other properties of the windows for better understanding.
It works fine for most of the windows that show themselves.But when
windows generated by java program appear on the surface,it will only
recognise the parent window with some classname like java.awt. but
won't recognize the child windows like buttons,dropdowns inside the
main java window.
Earlier I was thinking that every window which we see in WindowsO.S
shoule register itself with the O.S?But here the child windows of java
haven't registered themselves and then also we are not only able to see
them but also interact with them.
I am confused now....
Does every windows which shows itself while working on any Windows O.S
( lets say Windows 2k) a registered one?


Thanks and regards,
Yogesh Joshi

Posted by Vince Morgan on February 4th, 2006


<yogpjosh@gmail.com> wrote in message
news:1139042935.405462.35610@g44g2000cwa.googlegro ups.com...
Not everything that appears to be a window is actualy a window. Sometimes
they are an emulation and will not show in spy at all.
Some aplications emulate windows (such as buttons etc) to reduce the number
of resources they require, and other reasons.
Java is meant to be a cross platform language and is run within a virtual
machine to facilitate that. It has no, or very little, interaction with the
API at all, and the windows you see in java apps are not registered windows
(with the exception of the main window perhaps).
I am no expert on Java, or anything else I can think of right now so I
may be in error in some respects.
Those who know better will offer correction hopefully.
--
HTH
Vince Morgan
Remove UNSPAM
vinhar@UNSPAMoptusnet.com.au



Posted by Matt on February 4th, 2006


Vince Morgan wrote:
I don't know about Java, but sometimes you can't get at child windows
with Spy++'s little window pointer thing. You have to find them in
the window list. It seems to depend on what order they are in, in
the dialog resource (or maybe it's the order that they're created).

Matt


Similar Posts