> I wasn't sure what he meant by item menu, so I just assumed he meant
> check-boxes, i.e., buttons, as they are pretty static unlike (dynamic)
> menu. I think there is also a way to check a checkable menu items,
> utilizing GetMenuState API via mighty dll plugin, although I haven't
> tested. In case of menu items, I'd better resort to the configurations
> in registry or ini files, as trying to keep menus open while checking
> the items is rather cumbersome.

I just did a quick test with Notepad, and I found out that
GetMenuState doesn't require the menu opened, however, the result
seemed reversed, which supposed to check the WordWrap setting:

local hWnd=win.handle("=notepad")
local hMenu=dll.call("GetMenu|ui",hWnd)
local hSubMenu=dll.call("GetSubMenu|ui i",hMenu,2)
local uId=dll.call("GetMenuItemID|ui i",hSubMenu,0)
win.debug(dll.call("GetMenuState|ui ui ui",hMenu,uId,0))

Sean





------------------------ Yahoo! Groups Sponsor --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to