共用方式為


CWindow::GetWindowLong

擷取 32 位元值中的指定位移至額外的視窗記憶體中。

LONG GetWindowLong( 
   int nIndex  
) const throw();

備註

請參閱在 Windows SDK的 GetWindowLong

注意事項注意事項

若要寫入與 Windows 相容於 32 位元和 64 位元版本的程式碼,請使用 CWindow::GetWindowLongPtr

需求

Header: atlwin.h

請參閱

參考

CWindow Class

CWindow::SetWindowLong

CWindow::GetWindowWord