Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32 & MFC window handles

Status
Not open for further replies.

BM

Programmer
Apr 26, 2000
27
GB
Hi,
In a Win32 application CreatwWindow returns an HWND which can be utilised in the program, in the MFC window creation process this handle is not apparent, how do I access it?
I know I should be using pointers but I am using some Win32 code chunks in the global area.

Thanks

Barry
 
Barry,

The MFC CWnd class has an operator HWND so you can pass a CWnd for an HWND. Also you can access the HWND handle directly using the public m_hWnd variable.

Hope this helps
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top