HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rovingeye

no profile record

comments

rovingeye
·5 mesi fa·discuss
it's literally the exact same thing. We use trailing return types to be consistent across the language.
rovingeye
·5 mesi fa·discuss
This has been valid C++ since C++ 11
rovingeye
·7 mesi fa·discuss
It looks like you missed the part where you "move the context into the lambda body via capture specifier."
rovingeye
·7 mesi fa·discuss
Consistency (lambdas, etc.)
rovingeye
·7 mesi fa·discuss
All my window classes uses cbWndExtra, and I leave GWLP_USERDATA for the user who is creating windows.
rovingeye
·7 mesi fa·discuss
That doesn't sound like a valid wndproc
rovingeye
·7 mesi fa·discuss
I assume by "move the context into the body" you mean using GetWindowLongPtr? Why not just use a static wndproc at that point?
rovingeye
·7 mesi fa·discuss
I wasn't aware of the thread local trick, I solve this problem by not setting WS_VISIBLE and calling SetWindowPos & ShowWindow after CreateWindow returns (this solves some other problems as well..)
rovingeye
·8 mesi fa·discuss
I have that turned on in Windows Terminal but still use ctrl+c because it's how all other software works
rovingeye
·9 mesi fa·discuss
The windowing is pretty broken if you use system scaling https://github.com/zed-industries/zed/issues/40272
rovingeye
·9 mesi fa·discuss
Thanks for the info. Looks like they're using /silent right there in the example

"Steam customers love a quick and silent install. Add silent or quiet parameters to all run process commands and only add what you absolutely need for the game."
rovingeye
·9 mesi fa·discuss
MicrosoftEdgeWebview2Setup.exe /silent /install