토토사이트 사설토토 사설토토 토토사이트 토토사이트

Lenyo Icons v1 9 4 0

  • 토렌트엠
  • 2
  • 76
  • 0
  • 0
  • 글주소
  • 2018-02-20 04:09:49

Lenyo Icons v1 9 4 0


Menu Icons
Provides a set of functions for implementing icons in menus.

Version History
v2 (2007-10-19)
  • Now stdlib compatible (added MI_ prefix to functions.)
  • Merged everything into MI.ahk, removing wrapper functions in the process.
v2.1 (2007-12-25)
  • Added MI_EnableOwnerDrawnMenus(), which can be used to enable owner-drawn menus for a given window (as an alternative to MI_ShowMenu().)
  • MI_SetMenuStyle() now accepts a menu name or handle.
v2.2 (2009-01-08)
  • Changed MI_SetMenuItemIcons to automatically delete the previous icon or bitmap.
  • If individual menu items are to be removed, call MI_SetMenuItemIcons(MenuNameOrHandle, ItemPos, 0) to remove the icon.
  • Added MI_RemoveIcons, to be called before deleting a menu.
  • Misc optimizations (thanks animeaime).

Known Issues
  • Using MI_EnableOwnerDrawMenus on the script's main window:
    • breaks the "Pause Script" menu item; and
    • makes ListLines less useful, since interacting with the main window causes script to execute.

Usage example(s):

; Uncomment this if MI.ahk is not in your function library:
;#include %A_ScriptDir%MI.ahk

#NoEnv

; Sample menu items.
Menu, M, Add, 16x16 Icon, ItemClick
Menu, M, Add, 32x32 Icon, ItemClick
Menu, M, Add, 48x48 Icon, ItemClick

; Set item 1's icon to shell32.dll, icon 4, 16x16.
MI_SetMenuItemIcon("M", 1, "shell32.dll", 4, 16)
; Set item 2's icon to shell32.dll, icon 4, 32x32.
MI_SetMenuItemIcon("M", 2, "shell32.dll", 4, 32)
; Windows 2000 or later required (supports sizes other than 16x16 and 32x32):
MI_SetMenuItemIcon("M", 3, "shell32.dll", 4, 48)
; Usually looks better:
MI_SetMenuStyle("M", 0x4000000)

; Note: This menu is shown automatically after setting up the tray menu.


;
; Icons in the Tray menu!
;
; Refer to a menu by handle for efficiency.
hTM := MI_GetMenuHandle("Tray")

if (A_OSVersion != "WIN_VISTA")
{   ; It is necessary to hook the tray icon for owner-drawing to work.
    ; (Owner-drawing is not used on Windows Vista.)
    OnMessage(0x404, "AHK_NOTIFYICON")
    OnMessage(0x111, "WM_COMMAND") ; To track "pause" status.
    MI_SetMenuStyle(hTM, 0x4000000) ; MNS_CHECKORBMP (optional)
}

SplitPath, A_AhkPath,, SpyPath
SpyPath = %SpyPath%AU3_Spy.exe

MI_SetMenuItemIcon(hTM, 1, A_AhkPath, 1, 16) ; open
MI_SetMenuItemIcon(hTM, 2, A_WinDir "hh.exe", 1, 16) ; help
;-
MI_SetMenuItemIcon(hTM, 4, SpyPath,   1, 16) ; spy
; reload - icon needed!
MI_SetMenuItemIcon(hTM, 6, A_AhkPath, 2, 16) ; edit
;-
MI_SetMenuItemIcon(hTM, 8, A_AhkPath, 3, 16) ; suspend
MI_SetMenuItemIcon(hTM, 9, A_AhkPath, 4, 16) ; pause
MI_SetMenuItemBitmap(hTM, 10, 8) ; exit


MI_ShowMenu("M")
return

ItemClick:
return


AHK_NOTIFYICON(wParam, lParam)
{
    global hTM, M_IsPaused
    if (lParam = 0x205) ; WM_RBUTTONUP
    {
        ; Update "Suspend Script" and "Pause Script" checkmarks.
        DllCall("CheckMenuItem","uint",hTM,"uint",65305,"uint",A_IsSuspended ? 8:0)
        DllCall("CheckMenuItem","uint",hTM,"uint",65306,"uint",M_IsPaused ? 8:0)
        ; Show menu to allow owner-drawing.
        MI_ShowMenu(hTM)
        return 0
    }
}

WM_COMMAND(wParam, lParam, Msg, hwnd)
{
    Critical
    global M_IsPaused
    id := wParam & 0xFFFF
    if id in 65306,65403  ; tray pause, file menu pause
    {
        ; When the script is not paused, WM_COMMAND() is called once for
        ; AutoHotkey --** and once for OwnerDrawnMenuMsgWin **--.
        DetectHiddenWindows, On
        WinGetClass, cl, ahk_id %hwnd%
        if cl != AutoHotkey
            return
       
        ; This will become incorrect if "pause" is used from the script.
        M_IsPaused := ! M_IsPaused
    }
}


[토토사이트추천]Lenyo Icons v1 9 4 0  [토토사이트추천]Lenyo Icons v1 9 4 0  

Download (or view) MI.ahk
Covered by Lexikos' default copyright license.

Operating System Notes:

On Windows Vista, the script generates a 32-bit device-independent bitmap. This allows nice transparency (alpha blending) in icons, and allows Vista's menu style to apply.

On earlier versions of Windows, this method is not supported. Instead, the menu icons are owner-drawn. ShowMenu() or ShowOwnerDrawnMenu() must be called to show the menu with icons. ShowOwnerDrawnMenu() creates an invisible message window to act as the menu's owner (once per instance of the script.) As a side effect, showing a menu should not make the script/thread uninterruptible.

On Windows 2000 and later, PrivateExtractIcons() is used by SetMenuItemIcon() to extract an icon from a file. This should support any size of icon (tested with 16, 32 and 48.)

ExtractIconEx() is used on earlier versions of Windows, as PrivateExtractIcons() is not available. This supports 16x16 and 32x32 icons only. Other sizes may be specified, but the icon will be stretched to fit, regardless of which sizes are available in the source file. (However, LoadImage() can still be used to load the first icon of any given size from an .ico file.)

Other Methods

MI.Test.ahk (requires MI v1) shows a few other ways of displaying icons. In the following screenshot I've changed the menu colour to distinguish between the bitmap and the menu background. (On most versions of Windows - but not Vista - the menu background would be the same colour as the bitmap backgrounds.) 

[토토사이트추천]Lenyo Icons v1 9 4 0  

The "FakeAlphaTest" method could be used to fake transparency in a situation where owner-drawing is not an option (i.e. for some other app's menus.) The main issue with this method is: 
[토토사이트추천]Lenyo Icons v1 9 4 0  (with Windows Standard/Classic colour scheme)
If you look closely, you can see the "background" in the bitmap is the inverse of the menu colour, and is a different colour to the selection. (Not an issue if you change the selection colour to match [토토사이트추천]Lenyo Icons v1 9 4 0 .)

You can see what effect owner-drawing icons has on Vista: 
[토토사이트추천]Lenyo Icons v1 9 4 0  
(no visual style)


Bitmap Manipulation

MI.Test.ahk (specifically the "FakeAlpha" tests; MI.Test.ahk requires MI v1) also demonstrates how to manipulate bitmaps using AutoHotkey. It would be possible, for example, to dynamically colour an icon.

References
Shell Blog: Vista Style Menus, Part 1 - Adding icons to standard menus
nanoANT: Themed menu’s icons, a complete Vista and XP solution


Note: I chose to write this rather than use MMenu because:
  • I did not want a whole new menu API.
  • MMenu exclusively uses owner-drawing for icons, which disables Windows Vista's menu styles.

[출처 : http://www.autohotkey.com/forum/topic21991.html]


  • 사설토토【 https://betgom.com/board/toto 】안전합니다!
  • 토토사이트【 https://betgom.com/board/major 】검증된 곳 입니다~
  • 토토【 https://betgom.com/board/major 】이곳을 추천 해 드립니다~
  • 토토사이트【 http://MoonToTo.com/?ArchiveCategoryUrl=safemajor 】대박이지요!
  • 토토사이트【 http://MoonToTo.com/?ArchiveCategoryUrl=safemajor 】추천 해 드립니다~
  • 사설토토【 http://ToToMoon.Com 】검증된 곳 입니다~
  • 토토사이트【 http://ToToMoon.Com 】대박이지요!
  • 토토【 http://ToToMoon.com/?ArchiveCategoryUrl=safemajor 】정답 입니다!
  • 사설토토【 http://MoonToTo.com/?ArchiveCategoryUrl=majorsite 】대박이지요!
  • 토토사이트【 http://ToToMoon.com/?ArchiveCategoryUrl=editorialtoto 】이곳을 추천 해 드립니다~
  • 토토사이트【 http://ToToMoon.com/?ArchiveCategoryUrl=safechecking 】안전합니다!
  • 토토사이트【 https://betgom.com/board/toto 】정답 입니다!
  • 토토사이트【 http://ToToMoon.com/?ArchiveCategoryUrl=totosite 】정답 입니다!
  • 토토사이트【 https://betgom.com/board/toto 】제일 좋습니다~
자세한 정보는 아래의 출처를 참고해 주세요.

출처 : [ http://torrentm.net/mobile/url/4943 ]

Lenyo Icons v1 9 4 0


【 토렌트 다운로드 】

0
0
이 글을 페이스북으로 퍼가기 이 글을 트위터로 퍼가기 이 글을 구글PLUS로 퍼가기 이 글을 pinterest로 퍼가기 이 글을 텀블러로 퍼가기 이 글을 redbit로 퍼가기 이 글을 whatsapp로 퍼가기 이 글을 digg로 퍼가기 이 글을 flipboard로 퍼가기 이 글을 카카오스토리로 퍼가기 이 글을 밴드로 퍼가기 이 글을 라인으로 퍼가기 이 글을 sina로 퍼가기

휴대기기 자료

번호 제목 글쓴이 날짜 조회수
공지 [토토사이트]토토사이트가 무엇인지 부터 알아보자. +3 icon 토토사이트 2018-08-27 18:39:20 355
공지 [토토사이트]스포츠토토 토토사이트에 대해 알아보자. icon 토토사이트 2018-08-27 18:11:43 361
공지 토토사이트 추천 및 사설토토 사이트 토토추천 목록들. icon 토토사이트 2018-07-26 17:29:36 738
공지 사설토토╋토토사이트㎖토토사이트O토토사이트■사설토토C사설토토㎨ +4 icon 토토사이트 2018-05-06 17:43:34 161
공지 토토사이트₃토토사이트U토토추천⒩토토추천㎛토토사이트2토토사이트¥ +3 icon 토토사이트 2018-05-04 19:49:44 1,779
175 사설토토╋토토사이트㎖토토사이트O토토사이트■사설토토C사설토토㎨ +4 icon 토토사이트 2018-05-06 17:43:34 161
174 OfficeSuite Office PDF Editor v9.3.11958 Premium Apk Cr… 토렌트엠 2018-03-29 21:15:32 179
173 Top Paid Android Apps Pack March 2018 APKGEEK.NET 토렌트엠 2018-03-29 21:15:28 186
172 AdClear v8.0.0.506958 Non-Root Full-Version Ad Blocker +1 토렌트엠 2018-03-29 21:15:21 212
171 PicsArt Photo Studio +1 토렌트엠 2018-03-29 21:15:17 169
170 Endomondo v18.2.0 4.1 토렌트엠 2018-03-29 21:15:12 166
169 Sesame Shortcuts v2.3.4 5.0 토렌트엠 2018-03-29 21:15:06 121
168 Malwarebytes for Android Premium 3.2.1.1 Full 4REALTORRENTZ… 토렌트엠 2018-03-29 21:11:58 124
167 Free music for YouTube Stream v2.11.00 Pro CracksDroid 토렌트엠 2018-03-29 21:11:52 122
166 Spotify Music v8.4.43.632 Beta Mod CracksDroid 토렌트엠 2018-03-29 21:11:47 126
165 v4.0.1 4.2 +1 토렌트엠 2018-03-29 21:11:40 111
164 Fleksy Keyboard v9.4.0 b584 4.1 토렌트엠 2018-03-29 21:11:36 97
163 Cikukua Icon Pack v3.0.4 4.0 토렌트엠 2018-03-29 21:11:30 127
162 Pulsar 뮤직 플레이어 v1.7.2 build 100 4.0 토렌트엠 2018-03-29 21:11:23 120
161 Ginger 키보드 v7.16.04 4.0 토렌트엠 2018-03-29 21:11:19 114
160 Norton Security and Antivirus Premium v4.1.0.4044 Unlocked … 토렌트엠 2018-03-29 21:11:13 99
159 VPN Monster - free unlimited 토렌트엠 2018-03-29 21:11:09 104
158 VSCO Cam v49 Mod Apk CracksMind 토렌트엠 2018-03-29 21:11:00 100
157 KineMaster – Pro Video Editor v5.0.0.10175.GP Mod Apk Crack… 토렌트엠 2018-03-29 21:10:51 122
156 BitTorrent® Pro - Torrent App v4.10.2 Mod Apk CracksMind 토렌트엠 2018-03-29 21:10:47 112
토토사이트 토토사이트 사설토토 토토사이트