很是简单,基本就是二句主要代码解决。。
replaceIco = function( hwnd, icoPath ){
import process;
import winex;
import win.image;
var ico = win.image.loadIconFromFile( icoPath );
::PostMessage( hwnd, 0x80/*_WM_SETICON*/, 0/*_ICON_SMALL*/, tonumber(ico) );
}
需要的拿走
发表评论