Showing results for 2015 - Page 18 of 28 - The Old New Thing

May 20, 2015
0
0

When you inadvertently become a collector of something you really aren't all that into

Raymond Chen
Raymond Chen

As I was heading home at the end of the day, I ran into one of my colleagues who was also going home, and he was carrying a Star Wars-themed metal lunchbox similar to this one. For those who didn't grow up in the United States, these metal lunchboxes are the type of things elementary school children use to carry their lunch to school. I remarked,...

Non-Computer
May 13, 2015
0
0

Why don't you forward WM_GETMINMAXINFO and clamp the results?

Raymond Chen
Raymond Chen

In my illustration of how to make a window resizable in only one direction, commenter Josua asks, "Why don't you forward and clamp the results?" I'm going to assume the question is really "Why don't you forward before clamping the results?" rather than "Why did you bother writing all this code in the first place? Why not simply forward and cla...

Code
May 12, 2015
0
0

How does Task Manager compute Up Time, and why doesn't it agree with GetTickCount?

Raymond Chen
Raymond Chen

Task Manager shows a piece of information called "Up time". How is this value calculated, and why doesn't it agree with the value reported by /? Task Manager calculates "up time" by subtracting the system boot time from the current time. In other words, it is misnamed; it really should be called time since system was started. It doesn't subtract ...

Tips/Support