Click to See Complete Forum and Search --> : how to get hWnd or hDc etc. of Window????
Zej
Aug 19th, 2000, 12:43 PM
In VB you would use :D
SetPixel Me.hdc, 5, 5, vbBlack
In C++ you would use???????:confused:
I would also like to know this :)
if your asking because that gave you an error, remember you need the Semi-Colon at the end of everline
int ProgramHwnd;
ProgramHwnd = CWnd.m_hWnd;
Shouldn't it be:
HWND ProgramHwnd;
oh yeah,
I am just starting C++ so i dont know all the data types yet.... thanks for correcting me :)
parksie
Aug 20th, 2000, 04:58 AM
Uh...Zej? Don't use CWnd.m_hWnd. You need to extract it from your CWnd-derived class...and as Megatron says, it's of type HWND.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.