L
luyear
Unregistered / Unconfirmed
GUEST, unregistred user!
我用ExtractIcon函數讀的,可是不能畫到speedbutton上<br>var i: integer;<br> h:hicon;<br> iconindex:word;<br>begin<br> iconindex:=0;<br> h:=ExtractIcon(hinstance,'c:/windows/notepad.exe',iconindex);<br> //Drawicon(speedbutton1.glyph.canvas.handle,0,0,h);//這樣不可以<br> //Drawicon(speedbutton2.glyph.handle,0,0,h);//這樣不可以<br> form1.Icon.Handle:=h;//這樣可以<br> Drawicon(form1.canvas.handle,0,0,h);//這樣可以<br>end;