BYaman
August 29th, 2001, 06:12 AM
How can I add an icon in menu? is it posibble
How can I do dockable toolbar like Office style
thanks
How can I do dockable toolbar like Office style
thanks
|
Click to See Complete Forum and Search --> : menu and toolbar question BYaman August 29th, 2001, 06:12 AM How can I add an icon in menu? is it posibble How can I do dockable toolbar like Office style thanks gordonngai August 30th, 2001, 03:11 AM Add the Icon in menu Declare Function GetMenu Lib "user32" _ (byval hwnd as Long) as Long Declare Function GetSubMenu Lib "user32" _ (byval hMenu as Long, byval nPos as Long) as Long Declare Function GetMenuItemID Lib "user32" _ (byval hMenu as Long, byval nPos as Long) as Long Declare Function SetMenuItemBitmaps Lib "user32" _ (byval hMenu as Long, byval nPosition as Long, _ byval wFlags as Long, byval hBitmapUnchecked as Long, _ byval hBitmapChecked as Long) as Long Declare Function GetMenuItemCount Lib "user32" _ (byval hMenu as Long) as Long Declare Function GetMenuItemInfo Lib "user32" _ Alias "GetMenuItemInfoA" (byval hMenu as Long, _ byval un as Long, byval b as Boolean, _ lpMenuItemInfo as MENUITEMINFO) as Boolean public Const MF_BITMAP = &H4& Type MENUITEMINFO cbSize as Long fMask as Long fType as Long fState as Long wID as Long hSubMenu as Long hbmpChecked as Long hbmpUnchecked as Long dwItemData as Long dwTypeData as string cch as Long End Type ' public Const MIIM_ID = &H2 public Const MIIM_TYPE = &H10 public Const MFT_STRING = &H0& public Sub ImgInPopUpMenu() hMenu& = GetMenu(Main.hwnd) hSubMenu& = GetSubMenu(hMenu&, 0) ' 3 is number of submenu have icon hID& = GetMenuItemID(hSubMenu&, 3) SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, _ Main.Picture1.Picture, _ 'Add picture Main.Picture1.Picture End Sub Gordon Ngai Karina Gámez September 7th, 2001, 03:45 PM how can i use this?? codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |