Board index » cppbuilder » Save size and position / maximize ??
Asger Joergensen
![]() CBuilder Developer |
Save size and position / maximize ??2007-12-05 07:59:55 AM cppbuilder73 Hi there I an curently saveing the size and position of my app to an inifile, easy. If the program is maximize when being closed ist should of course open again as maximize, also easy. My problem is that i would like to save the size the window had before it was maximized so that when the window is restored it would NOT be in fulscrean. I have tried to save the size and pos in Form::Resize but unfortunatly the WindowState is set after the Resize event so that code like this: if(WindowState == wsNormal) //save size and pos don't work. Anybody know how I can do this ?? Thanks in advance Kind regards Asger |