How do I get a window's Win32::GUI::Menu object? I have a function that has the main window handle in a local variable ($Window). I want to disable one of the items in this window's menu. Initially, I thought this would be easy, but:
$Window->GetMenu(); returns a menu HANDLE, not an object reference. This doesn't seem to help me -- unless there's a way to turn the handle into an object? $Window->{-menu} returns nothing. Ultimately what I'm trying to accomplish is something like: $Window->Menu->{'MyMenuItem'}->Enabled(0); Which used to work according to a VERY old message from this list (http://www.mail-archive.com/perl-win32-gui-users@lists.sourceforge.net/msg00945.html). Unfortunately, the current version of Win32::GUI doesn't appear to recognize $Window->Menu Thx, - PF ------------------------------------------------------------------------------ The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users http://perl-win32-gui.sourceforge.net/