It depends what you mean by "properties"...
IF you mean Win32 window properties (
Window Properties (Windows)[
^]) then you can look at the reference above.
IF you mean data stored in the Win32 window structure or
WNDCLASS
structure then you'll need
Set/GetWindowLongPtrPtr
or the 32 bit equivalent.
IF you mean the
members of an MFC C++ object associated with a given window handle you can use
CWnd::FromHandle
to get a
CWnd
pointer from the associated window handle. However there has to be an MFC C++ object associated with the handle - i.e. you've created a
CWnd
derived object, called
Create
on that or used some other baroque MFC method of creating the window (or subclassing it, but that's hopefully another story). If there's no MFC object associated with the window handle it'll appear to work but will go horribly wrong.
So the upshot of this lot is if you need a
CWnd
pointer to do something later stash the address when you create the MFC object and don't rely on being able to recover it later.