Re: Newbie: Win32Lib: open maximized?

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

Brian K. Broker wondered:

> Is there a way to do it so that WS_MAXIMIZE
> and WS_MINIMIZE styles are used when calling
> 'create'?

Yes, but I prefer the method I outlined. If I define the flags:

   Normal
   Maximize
   Minimize
   Modal

then there are no Win32 specific flags, and the code's portable. I can also
get rid of openModal() and minimizeWindow(). \

I'm tempted to rename the routine to "showWindow()" and add the flags:

   Hidden
   Close

but there are too many problems with knowing when to trigger onOpen vs.
onResize. I could get around that by setting a state flag, but I suspect it
would disrupt too much existing code, and it doesn't feel that clean of a
solution.

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu