hWnd in MFC

This is a discussion on hWnd in MFC within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way of getting the hWnd variable from an MFC class? After this information to implement DirectX stuff ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    110

    hWnd in MFC

    Is there a way of getting the hWnd variable from an MFC class?

    After this information to implement DirectX stuff into an app that I am building.

    Later,
    WebmasterMattD
    WebmasterMattD.NET

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    The HWND is a member of CWnd..something like m_hWnd??

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    110
    Thanks for that.

    Did a simple google, and came up with this url
    http://msdn.microsoft.com/library/de...a3a.m_hwnd.asp

    In short it is a global variable in a CWnd class.

    Later,
    Last edited by WebmasterMattD; 08-01-2003 at 07:08 AM.
    WebmasterMattD
    WebmasterMattD.NET

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Avoiding Global variables
    By csonx_p in forum Windows Programming
    Replies: 32
    Last Post: 05-19-2008, 12:17 AM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 05:23 AM
  3. My first "real" windows app
    By JoshR in forum Windows Programming
    Replies: 2
    Last Post: 07-28-2005, 07:40 AM
  4. opengl program as win API menu item
    By SAMSAM in forum Game Programming
    Replies: 1
    Last Post: 03-03-2003, 06:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21