Showing tag results for History

Aug 9, 2006
Post comments count0
Post likes count0

How were window hooks implemented in 16-bit Windows?

Raymond Chen

The mechanism for keeping track of window hooks was very different in 16-bit Windows. The functions involved were , and . The first two functions still exist today, but the third one has been replaced with a macro: Disclaimer: All code below is "reconstructed from memory". The spirit of the code is intact, but the precise details may be off. ...

History
Jul 14, 2006
Post comments count0
Post likes count1

How were DLL functions exported in 16-bit Windows?

Raymond Chen

The whole point of dynamic link libraries (DLLs) is that the linkage is dynamic. Whereas statically-linked libraries are built into the final product, a module that uses a dynamically-linked library merely says, "I would like function X from Y.DLL, please." This technique has advantages and disadvantages. One advantage is more efficient use of stor...

History
Jul 7, 2006
Post comments count0
Post likes count0

No, really, why is it 160×31?

Raymond Chen

When I discussed some time ago why minimized windows have an apparent size of 160x31, I explained that the minimized icon is a miniature title bar, but I managed not to explain why the values are exactly 160 and 31. The width of the miniature title bar is determined by the member of structure. You can retrieve and change this structure with the...

History
Jun 9, 2006
Post comments count0
Post likes count0

Why did the Add or Remove Programs control panel try to guess all that information?

Raymond Chen

As we saw earlier, the "Add or Remove Programs" control panel used several heuristics to attempt to determine things like program size and frequency of user. Why did it bother doing this at all? At the time the feature was added, disk space was not cheap like it is today. One of the problems users were having was running out of disk space and not...

History
Jun 6, 2006
Post comments count0
Post likes count0

The forgotten common controls: The page scroller

Raymond Chen

The pager control was introduced with the common controls library that came with Internet Explorer 4.0 in order to assist in implementing scrolling menus on the Start menu and Favorites menu. (The Start menu and Favorites menu aren't really menus in the Win32 sense. They are custom controls written to act like menus; the fakemenu sample prov...

History
Jun 2, 2006
Post comments count0
Post likes count0

What does the CS_CLASSDC class style do?

Raymond Chen

Last time, I talked about the historical background for the class style and why it starts out sounding like a good idea but when you think about it some more turns out to be an awful idea. The class style is the same thing, but worse, for it takes all the problems of and magnifies them. Recall that the class style instructs the window manage...

CodeHistory
Jun 1, 2006
Post comments count0
Post likes count2

What does the CS_OWNDC class style do?

Raymond Chen

Recall that window DCs are most commonly used only temporarily. If you need to draw into a window, you call or, if outside of a paint cycle, , although painting outside of a paint cycle is generally to be avoided. The window manager produces a DC for the window and returns it. You use the DC, then restore it to its original state and return it to...

CodeHistory
May 31, 2006
Post comments count0
Post likes count0

Do it for Katie

Raymond Chen

A story in honor of Katie Couric's final day at the Today show. Last month I happened to run into a former member of the shell team who worked on the Windows XP Welcome screen. He told me a story from CES 2001, where Windows XP's interface (code-named Luna) was unveiled. There was going to be a segment on the Today show, and the We...

History