CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    How to get a handle to a window

    I need the code that will get a handle to a window or dialog box. Please send me a code snippet and don't just refer me to the help for some function because my help is not working correctly right now.

    Thanks
    Devin


  2. #2
    Guest

    Re: How to get a handle to a window

    GetSafeHwnd or m_hWnd


  3. #3
    Join Date
    Apr 1999
    Posts
    90

    Re: How to get a handle to a window

    MFC controls and dialog boxes are CWnd types which contain the public member variable m_hWnd of type HWND. You can also use the member function GetSafeHwnd() to return the m_hWnd.


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