Click to See Complete Forum and Search --> : Getting a size of a Window


CapGM
May 12th, 2003, 03:38 AM
I have a application whose FrontEnd is developed in VC++ And the Backend is in C#. From the Frontend I send the window handles of some controls created in the Frontend, to the Backend.

Now in the BAckend using one of these Window handles I want to determine the size of the Window represeneted by this HWND.

Could anybody please tell me if there is a method, function within C# which gives me the size of the particular HWND

thanks

KingTermite
May 12th, 2003, 08:45 AM
Just a guess....still a bit of a noobie, but there has got to be a fuction something like

Form GetFromFromWindowHandle(Hwnd);

Once, you have a reference to the window itself, height and width are hust properties.

WindowName.Height
WindowName.Width