Closed MaulingMonkey closed 3 years ago
Good point. I had to deal with this early this morning when talking about CS_OWNDC.
For many of the initial value we can see them in msdn without looking at headers, but I'll try to find the first spot where we're forced to look at headers and explain how #define works.
https://rust-tutorials.github.io/triangle-from-scratch/opening_a_window/win32.html#creating-the-window introduces constants derived from C
#define
s. Earlier asides such asReading a C struct declaration
seem to imply the audience isn't assumed to know C - so it might be worth briefly noting what these look like in the original C headers (e.g.#define WS_OVERLAPPED ...
/enum { ... }
) and how the exact type these match to in Rust can be somewhat ambiguous / down to the author's own personal guesswork.