CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2001
    Posts
    19

    Question Getting a size of a Window

    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

  2. #2
    Join Date
    Jul 2002
    Location
    Seattle Area, WA
    Posts
    241
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured