禁止改变listview表头宽度的代码
By
admin
at 2017-12-10 • 0人收藏 • 1322人看过
winform.listView.wndproc = function(hwnd,message,wParam,lParam){ //禁止改变列头宽度 if( message == 0x004e/*_WM_NOTIFY*/ ){ var hdr = ::NMHDR() raw.convert(topointer(lParam),hdr); if(hdr.code == 0xFFFFFEBA/*HDN_ENDTRACKW*/ || hdr.code == 0xFFFFFECE/*HDN_ENDTRACKA*/ ){ return true; } } }
登录后方可回帖