There's more than one way to do things | |
PerlMonks |
Re^5: How to Resize a Window in M$ Windows?by kejohm (Hermit) |
on Feb 11, 2011 at 04:42 UTC ( [id://887567]=note: print w/replies, xml ) | Need Help?? |
After looking at the Win32::GUI source, I found that the object constructor does tie the hash object before blessing it. You notice this when you dump the contents of a window object:
Apparently, according to the source, it is needed to "get/set properties in a more fashionable way", whatever that means :) Even some of Win32::GUI's own methods only return handles, rather than objects. For example, the Win32::GUI::DC methods CreateDC(), and GetDC(), as well as methods that return some kind of resource, such as a menu, icon, image list, etc. I would say that, in most instances, you can get away with creating your own objects, but if your code doesn't run how it should, they could be the source of the problem.
In Section
Seekers of Perl Wisdom
|
|