OKay probably a simple question for most of you guys here. When you are defining a window the line
this line basically tells the window when it needs to be redrawn, is the correct?Code:wndclass.style = bla;
Printable View
OKay probably a simple question for most of you guys here. When you are defining a window the line
this line basically tells the window when it needs to be redrawn, is the correct?Code:wndclass.style = bla;
Not quite. You can use that for many values. One of them(CS_NOCLOSE), disables the "X" button, so it can't be closed. There's a lot more, but I don't know them all. Look for window class styles on MSDN.
Basically, Microsoft decided to use a long used technique to store several instructions in a single number. This saves memory and allows a more manageable parameter passing method rather than using, say, strings to do the work. Check out bit shifting/packing techniques on the web...