Jump to content

Scopinho

Members
  • Posts

    8
  • Joined

  • Last visited

About Scopinho

  • Birthday 09/18/1984

Scopinho's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. I'm already using it!!!!!! Thanx again Holger!!!!!
  2. FINALLY!!!!!!!!!!!!
  3. Thanx man... finally someone here was able to help me with this issue. I'm going to take a look on this.
  4. Check out this topic that I created, this is what I was talking about: http://www.autoitscript.com/forum/index.php?showtopic=20798 Now I just need to find a way to use ICON....
  5. Another DLLCALL.... ENJOY! #include <GUIConstants.au3> Global Const $MF_BYCOMMAND = 0x00000000 Global Const $MF_BYPOSITION = 0x00000400 Global Const $IMAGE_BITMAP = 0 Global Const $LR_LOADMAP3DCOLORS = 0x00001000 Global Const $LR_LOADFROMFILE = 0x0010 GUICreate("AddImageToMenu",100,100,-1,-1,$WS_OVERLAPPEDWINDOW) $trackmenu = GuiCtrlCreateContextMenu() GuiCtrlCreateMenuItem("Item 1",$trackmenu) GuiCtrlCreateMenuItem("Item 2",$trackmenu) GuiCtrlCreateMenuItem("Item 3",$trackmenu) AddImageToMenu($trackmenu, $MF_BYPOSITION, 1, ".\AddImageToMenu.bmp") GUISetState() While GUIGetMsg() <> -3 WEnd Func AddImageToMenu($ParentMenu, $IndexType, $MenuIndex, $BitmapMenu) $hBmpMenu = DllCall("user32.dll", "hwnd", "LoadImage", "hwnd", 0, _ "str", $BitmapMenu, _ "int", $IMAGE_BITMAP, _ "int", 0, _ "int", 0, _ "int", BitOR($LR_LOADFROMFILE, $LR_LOADMAP3DCOLORS)) $hBmpMenu = $hBmpMenu[0] DllCall("user32.dll", "int", "SetMenuItemBitmaps", "hwnd", GUICtrlGetHandle($ParentMenu), _ "int", $MenuIndex, _ "int", $IndexType, _ "hwnd", $hBmpMenu, _ "hwnd", $hBmpMenu) EndFuncAddImageToMenu.au3 AddImageToMenu.bmp
  6. No man, that is a GUI! I don't need a GUI, I need a menu. Thanx anyway.
  7. Was just thinking with myself... is anyone here able to use this DLL in AutoIt? http://www.vbaccelerator.com/codelib/cpopmenu/cnewmenu.htm Maybe Lars... he seems like a smart guy... well I dunno, just give it a try. I can really use a menu like that, just imagine some icons on it!!!!
×
×
  • Create New...