You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The win32 examples that handle the WM_NCCREATE event without using DefWindowProcW don't have their non-client area drawn properly, which means that they don't get the title text drawn.
The text was updated successfully, but these errors were encountered:
Hello, I've been following your tutorial and this has been bugging me.
After reading up, various sources say to either set the return of WM_NCCREATE into DefWindowProcW or just not handle it.
I haven't gotten to the OpenGL part of the tutorial.
but
let _ = set_window_userdata(hwnd, ptr).is_ok(); I am not entirely sure what the ramifications, ignoring this result has, so I went with the first version.
Oh, yeah, that all sounds right. Either I learned about this by the end of the tutorial, or maybe after I wrote the tutorial. The gitbook search is pretty bad so i can't tell if this gets talked about eventually.
If you get to the end of the tutorial and it still hasn't mentioned this, then feel free to open a PR and I can get it merged.
The win32 examples that handle the
WM_NCCREATE
event without usingDefWindowProcW
don't have their non-client area drawn properly, which means that they don't get the title text drawn.The text was updated successfully, but these errors were encountered: