Getting parent window reference

  • Thread starter Thread starter Rudy
  • Start date Start date
R

Rudy

Hi
Is there a way is a 'class library' to get the reference to window of
application that uses the library ?

I'm using class library to create a custom command for a closed source
application (GeoMedia), so obviously I can't make it to pass this
reference to my lib as a method parameter.
 
Hi Rudy,

I think calling WinAPI functions like FindWindow through P/Invoke might
help. But there are lots of potential caveats - the parent window might be
owned by another thread, for example. I think there is good reason why the
window handle is not given to custom commands. I'd still, however, suggest
referring to the GeoMedia manual - I hope they should have said something
about that there.
 
Back
Top