制作ico图标
IcoWorkshop制作的ico图标在工具栏中显示特别小,制作时已经选择了大的格式,比如:64*64;结果是;工具栏按钮变大了,但是图片还是显示还是比较小,并且不清晰!是不是和选择的png图片的大小有关!谁能帮忙解释下!谢谢!
Private Const ICON_BIG = 1 Private Const ICON_SMALL = 0 Private Const WM_SETICON = &H80 Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Private Declare Function ExtractIcon Lib "shell32.dll" Alias "ExtractIconA" (ByVal hInst As Long, ByVal lpszExeFileName As String, ByVal nIconIndex As Long) As Long Public Sub SetWindowIcon(hWnd As Long) Dim hIcon As Long hIcon = ExtractIcon(App.hInstance, App.EXEName & ".exe", 0) SendMessage hWnd, WM_SETICON, ICON_SMALL, ByVal hIcon SendMessage hWnd, WM_SETICON, ICON_BIG, ByVal hIcon End Sub