in reply to Maximizing window in Perl/TK
If by "upper-right corner of the window", you mean the buttons at the right end of the title bar, those buttons should be handled by your window manager--in this case NT. Which means that you shouldn't have to code for them at all (and probably shouldn't, since that is likely to introduce irregularities and confuse users).
Is that not happening in your application?
BTW, as a callback or sub what you have looks fine to me-- or did this not work either?
Additional thought: you may want to ensure that you set a height that takes into account the typical size of the menu bar, since otherwise you'll just create a window bigger than the actual screen real estate available.