Re: My Tutorial Is Up!

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

David Roach wrote:

> The first part of my tutorial is up.

I only got a couple seconds to look at the site; it looks good, but a few
comments.

1. "Cuny", not "Cunny". It rhymes with "loonie", not "money."

2. Magic parameters in create. The parameters are:

   create( class, caption, parent, x, y, width, height, flags )

In "My First Program", you specify parent = 0. That means that the window
has no parent; it's the primary window. x=Default and y=Default means you
don't care where Windows places the window.

Rather than have seperate createWindow/createButton/createMenu routines, I
have a single create routine. In some cases, certain parameters don't make
sense, like x, y, width and height in menus. Because create *always* takes 8
parameters, for things like menus, you just pass zeros in those fields,
because the values are ignored anyway.

I hope this clarifies things a bit.

Good luck with the tutorial!

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu