Yuri Dario wrote:
Hi,

I was asking myself how does the win32 code to create new windows in
non-maximized state. I see the code is creating frame windows using
normal state or maximized state.

In my OS/2 implementation, I get request from VCL to create maximized
windows: then I see the client area is painted using the last opened
document window size, and immediately the client area is resized to
maximized state (to correctly fill my frame area).

I wonder how to set the initial frame size according to old client area
size: I logged size/position calls inside VCL and never got a call to
resize my frame window. I think I should set some flags to allow VCL to
resize my windows, but I don't know where/how.

Size and position are restored via the (Win)SalFrame::SetWindowState Method. OOo stores the frame's state with the data you provide in GetWindowState and sets those data again with SetWindowState.

Kind regards, pl

--
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
     -- Author unknown

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to