Re: David Win32lib
- Posted by Bernie Ryan <bwryan at PCOM.NET> Jul 23, 1999
- 458 views
On Fri, 23 Jul 1999 12:22:37 -0700, Cuny, David <David.Cuny at DSS.CA.GOV> wrote: > >No, it's actually much easier. Create a new set of >class attributes - say, 'classExt' - that would hold >the extended attributes for a class. Existing classes >obviously have extended attributes of zero. > >To create a new class with extended attributes, you >would write something like this: > >-- #40: NewClass > className[ NewClass ] = <class name> > classType[ NewClass ] = <class identifier> > classStyle[ NewClass ] = <style flags> > classExt[ NewClass ] = <extended style flags> > >The change to the create() code would be: > >-- create control >window_handle[id] = c_func( xCreateWindow, { > classExt[id], -- extended style > buffer1, -- window class name > ... > NULL} ) -- creation parameters > >And there you have it - support for extended attributes. > >Pretty trivial, actually. David Not so trivial how will this allow me to pass the creation parameter with out changing the parameter list to your Create function ? Bernie Bernie