Re: win32lib ??

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

Bernie Ryan wondered:

>> What is the reason that you register the main
>> window every time createWindow procedure
>> is called ?


David Cuny replied:

>I was under the impression that you had to
>register all the windows. Am I
>mistaken?

Yes.
You only need to register for new window types.
Therefore, in most cases, it is only neccesary to register
the first window you create(i.e register as win32lib1 as
you do for your first window). The others can all then be
created with win32lib1 as the lpClassName element of
CreateWindow.

I think you must have forgotten, David, that we had this
discussion a few months ago, because I had to rewrite several
portions of your main create() function for this exact reason.
Also, registering every window in this way makes it impossible
to use other, preregistered, window types, i.e syslistview, except
for the ones you specifically allow, i.e. button, group, edit etc.

At that time I sent you code that overcomes this problem, and you
said that you would use it in future versions of win32lib. If you
would like another copy let me know.

All the best

Terry

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

Search



Quick Links

User menu

Not signed in.

Misc Menu