AddIconHandle (ActiveX) 8.6 |
Post Reply |
Author | |
robs
Groupie Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
Posted: 30 December 2003 at 2:16pm |
When using LoadResPicture in VB, it seems to always load icons 32X32 pixels, which looks ugly on the docking panes. I've had luck resizing the icons using code such as: Private Declare Function CopyImage Lib "user32" (ByVal handle As Long, ByVal imageType As Long, ByVal newWidth As Long, ByVal newHeight As Long, ByVal lFlags As Long) As Long Private Cons IMAGE_ICON=2 Private Const LR_COPYFROMRESOURCE =3 Dim p As stdole.IPictureDisp DockingPane.AddIconHandle (l,ID) The code above will resize the icon in the resource file to 16X16. Good luck.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |