Can ya take a look at my code and let me know how I am doing so far? Only have one window with Treeview, listview, 3 buttons, 2 frames, and 2 text boxes. Very interested in comments!

Text of code here

Also, When I combine styles which is preferred:
WS_CHILD or WS_VISIBLE

or
WS_CHILD + WS_VISIBLE

both seem to work, just wanted to know if there was a "correct" way to combine styles
Posted on 2002-06-21 18:57:28 by Gunner



WS_CHILD or WS_VISIBLE
or
WS_CHILD + WS_VISIBLE



In this case the 'OR' operator or the '+' (add) operator perform exactly the same job because WS_CHILD and WS_VISIBLE are flags with only different bits set.

e.g.


FLAG1 EQU 001b
FLAG2 EQU 010b

'FLAG1 OR FLAG2':
01
10 OR
11

'FLAG1 + FLAG2':
01 = 1
10 = 2
1 + 2 = 3
3 = 11 (In binary)


However, if say FLAG2 EQU 011b then the operators obviosly wouldn't perform equal operations.
Posted on 2002-06-21 20:42:44 by huh