iczelion tut23[6]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 jimgreen 的 blog

 

  • hmenu is the handle of the popup menu to be displayed
  • uflags specifies the options of the function. like where to position the menu relative to the coordinates specified later and which mouse button will be used to track the menu. in our example, we use tpm_rightalign to position the popup menu to the left of the coordinates.
  • x and y specify the location of the menu in screen coordinates.
  • nreserved must be null
  • hwnd is the handle of the window that will receive the messages from the menu.
  • prcrect is the rectangle in the screen where it is possible to click without dismissing the menu. normally we put null here so when the user clicks anywhere outside the popup menu, the menu is dismissed.
  • when the user double-clicks at the tray icon, we send wm_command message to our own window specifying idm_restore to emulate the user selects restore menu item in the popup menu thereby restoring the main window and removing the icon from the system tray. in order to be able to receive double click message, the main window must have cs_dblclks style.

                invoke shell_notifyicon,nim_delete,addr note
                mov eax,wparam
                .if ax==idm_restore
                    invoke showwindow,hwnd,sw_restore
                .else
                    invoke destroywindow,hwnd

    本文关键:iczelion asm
      相关方案
    Google
     

    本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

    go top