Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.2 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. bltpwnd.hxx
  7. PWND2HWND hack for converting a pwnd to an hwnd.
  8. FILE HISTORY
  9. KeithMo 13-Oct-1992 Split from bltdlg.hxx.
  10. */
  11. #ifndef _BLT_HXX_
  12. #error "Don't include this file directly; instead, include it through blt.hxx"
  13. #endif // _BLT_HXX_
  14. #ifndef _BLTPWND_HXX_
  15. #define _BLTPWND_HXX_
  16. #include "bltwin.hxx"
  17. /*************************************************************************
  18. NAME: PWND2HWND
  19. SYNOPSIS: Hack to convert a pwnd to a hwnd within a ctor
  20. HISTORY:
  21. beng 01-Nov-1991 Created
  22. **************************************************************************/
  23. DLL_CLASS PWND2HWND
  24. {
  25. private:
  26. HWND _hwnd;
  27. public:
  28. PWND2HWND( HWND hwnd ) : _hwnd(hwnd) {}
  29. PWND2HWND( const OWNER_WINDOW * pwnd ) : _hwnd(pwnd->QueryHwnd()) {}
  30. HWND QueryHwnd() const
  31. { return _hwnd; }
  32. }; // class PWND2HWND
  33. #endif // _BLTPWND_HXX_