[ Home | Contents | Search | Next | Previous | Up ]
Date: 11/30/99
Time: 12:04:12 AM
Q. I use Win 32 API all the time. Now I have to do a program using OWL
and Win32 API. Now in a TDecoratedFrame class, I have to use an API that
needs hwnd. How do I find that out? Is there any function in TDecoratedFrame that can give
me the handle to window (hwnd)?
A. There are several ways. Use HWindow, use GetHandle, which returns a THandle(an
HWND), or, use the * to dereference as in *mydecframe. TWindow overloads the * operator to
return an HWND. You can also use the (HWND) typecast. Any of these methods will work.
Choose which one you like best.
Jonathan Schafer