共用方式為


CWindow::SetWindowLong

將 32 位元的值 (在指定的位移額外的視窗記憶體中。

LONG SetWindowLong( 
   int nIndex, 
   LONG dwNewLong  
) throw();

備註

請參閱在 Windows SDK的 SetWindowLong

注意事項注意事項

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

需求

Header: atlwin.h

請參閱

參考

CWindow Class

CWindow::GetWindowLong

CWindow::SetWindowWord