Поделиться через


CWindow::SetWindowLongPtr

Changes an attribute of the specified window, and also sets a value at the specified offset in the extra window memory.

LONG_PTR SetWindowLongPtr( 
   int nIndex, 
   LONG_PTR dwNewLong  
) throw( );

Remarks

See SetWindowLongPtr in the Windows SDK.

This function supersedes the CWindow::SetWindowLong method. To write code that is compatible with both 32-bit and 64-bit versions of Windows, use CWindow::SetWindowLongPtr.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::GetWindowLongPtr

CWindow::SetWindowLong