Re: Win32Lib: Must be a Flag

new topic     » goto parent     » topic index » view thread      » older message » newer message

cklester wrote:
> 
> Normally, when a child window is maximized, it fills its parent window.
> When the parent window is resized, the child window stays maximized.
> However, with Win32Lib, when the parent is resized, the child does NOT
> conform to the new size. Is there a flag to use that will cause the
> child window to remain maximized when its parent is resized?

I think you are talking about true MDI (multiple document interface). 

Win32lib does not yet support MDI, but you can easily simulate the effect
you mention. Do something like ...

procedure Resize_MainWin(integer self, integer event, sequence parms)
   sequence lRect

   lRect = getClientRect(self)
   setRect(ChildWin, 0, 0, lRect[3], lRect[4], w32True)
end procedure
setHandler(MainWin, w32HResize, routine_id("Resize_MainWin"))

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu