Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion book_src/opening_a_window/win32.md
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,15 @@ pub unsafe extern "system" fn window_procedure(
}
```

And update our window class to use `window_procedure`:
```rust
fn main() {
// ...
wc.lpfnWndProc = Some(window_procedure);
// ...
}
```

Window looks the same as before,
but if we fiddle with the brush value we can see it'll draw using other colors.
Doesn't seem to fix the mouse though.
Expand Down Expand Up @@ -1458,7 +1467,6 @@ And we check for them in our window procedure:
match Msg {
WM_NCCREATE => {
println!("NC Create");
return 1;
}
WM_CREATE => println!("Create"),
```
Expand Down