|
|
| P is for Practical | |
| PerlMonks |
Re^7: How to get a window's menu as a Win32::GUI::Menu object?by Anonymous Monk |
| on Feb 17, 2013 at 11:16 UTC ( #1019125=note: print w/ replies, xml ) | Need Help?? |
|
Yes, but not just any old object -- THE object the handle was associated with. Sorry, but I would have thought this was obvious given the context of the question. :-/ :) Well, sorry, it wasn't obvious to me -- Win32::GUI There is the undocumented Win32::GUI::GetWindowObject($handle) but it doesn't work with menus foreget this I guess you could remove the IsWindow check from GetWindowObject, recompile Win32::GUI, and try that ... but if this doesn't make you rethink choosing Win32::GUI :)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||