Originally Posted by
laserlight
Did you get any warning from the compiler? I would expect a warning because it sounds unlikely that GetWindowLong will return a LONG_PTR.
Speaking of that, another thing to investigate is whether there's an equivalent of GetWindowLongPtr in C: a quick check of MSDN docs shows that it may be so, although there seems to be some difference in naming due to a possible name suffix.
This is definitely wrong:
Code:
ws xor (WS_MAXIMIZEBOX or WS_MINIMIZEBOX))
In C, the or operator is an alias for the logical || operator not the bitwise | operator. While xor is an alias for the bitwise ^ operator, you likely have to #include <iso646.h> to be able to use it, which makes it puzzling why you didn't get an error or at least a warning (unless you simply ignored the warning.)
Could you possibly make a suggestion of how, what you say is wrong, should be changed?