I want to make an app in msvc++ which will maximize on starting.When i execute my program and then maximize it by clicking on the maximize button, the windows enlarges, but the components dont resize.I’m using VC++ express edition 2005.Pls help.
Share
You will get automatically get a new paint request. Handle it.
As you perhaps already know, your Windows program should be able to paint itself at any moment. Your app may have been hidden behind another window, and when that goes away you must repaint yourself.
A side effect of this “always be ready to paint” design is that things like maximize are trivial and in fact defaulted. The default handling of “maximize” is to redraw the borders of your app, and then re-issue a paint command.