We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
Handmade Network»Feed
Ben Visness
Hello Handmade Network! 2024 has been great so far. Most notably, we held our first-ever Learning …
»
longtran2904
So is it safe to say that the 2 windows' width will be the same the only difference is the height …
»
Miguel Lechón
I don't know if this makes it slow, but it is slower than it used to be: I've tried several thing…
»
soldate
Great article! About error handling, i like the V approach "or {}". Nice to know that you research…
»
soldate
Good article!
»
soldate
Error: This looks like the beginning of a function declaration but it's missing the initial fn. Di…
»
Christoffer Lernö
Lexing, parsing and analysis is about 1-2% of the entire compile time when compiling C3 code with …
»
soldate
Hi, i realy like the c3 approach of being a better c. But 'fn' in front of function declarations I…
»
Simon Anciaux
1 The drop shadow doesn't matter at all. Only the resize handles. 2SetWindowPos you need to give i…
»
longtran2904
I'm just trying to understand why your code worked. Let me list out some of my questions: Does the…
»
Simon Anciaux
Just in case I still didn't understand what you wanted, did you run my code ? Isn't it doing what …
»
longtran2904
It's seems similar because I used the client rect of the big window to compute the offsets, but yo…
»
Simon Anciaux
It's not for window_rect.top as we use 1 instead of top_offset. It's seems similar because I used …
»
»
Simon Anciaux
What are resize handles? When you move your mouse near the edge of the window, the cursor change t…
»
longtran2904
If you don't show the window first, than all the sizes are the same. But this doesn't help. Yeah, …
»
Simon Anciaux
If you don't show the window first, than all the sizes are the same. But this doesn't help. After …
»
longtran2904
No, rect and smallRect differ because SetWindowPos includes the drop shadow to the size you pass i…
»
Simon Anciaux
I'm sorry if I don't understand correctly, but if you have a "desired size" for the window, why do…
»
longtran2904
Yeah, sorry for being unclear. Let's say I have a desired size (not counting the drop shadow) for …
»
Simon Anciaux
You want to create a window, with a client area big enough to encapsulate another window (includin…
»
owszem
Can You show any benchmark? any real proof thats LLVM is slow?
»
longtran2904
So I used the function DwmGetWindowAttribute(wnd, DWMWA_EXTENDED_FRAME_BOUNDS, &rect, sizeof(RECT)…
»
»
longtran2904
Wait, so the entire white border represents how big the drop shadow is and the reason I think it's…
»
Simon Anciaux
If you put your window against a white background, take a screenshot and measure at which distance…
»
longtran2904
But the size is way too big for the drop shadow, don't you think?
»
Simon Anciaux
From the GetWindowRect doc In Windows Vista and later, the Window Rect now includes the area occup…
»
longtran2904
For some reason, the AdjustWindowRect returns a bigger rect than I want. Here's an image of 2 wind…
»
Mārtiņš Možeiko
By "unpredictable check" you mean "unpredictable branch" ? There will be no branch. It will compil…
»