Private Declare Function DeleteObject Lib "gdi32" Alias "DeleteObject" (ByVal hObject As Long) As Long像这样事先声明,就可以在程序中跟普通函数一样使用了。