Welcome to MSDN Blogs Sign in | Join | Help

July 2003 - Posts

Scrollbars, part 4: Adding a proportional scrollbar

To obtain a proportional scrollbar, you need to tell Windows the minimum and maximum values covered by the scrollbar, the current scrollbar position, and the size of the scrollbar thumb (called the "page size"). One annoyance of the way scrollbars are
Posted by oldnewthing | (Comments Off)
Filed under:

Answer to yesterday's exercise

iMin is the lowest-index element which intersects the paint rectangle, so a simple truncating division produces the desired index. The formula for iMax can be interpreted two ways. One is that it is the roundup of the first invisible line. Recall the
Posted by oldnewthing | 5 Comments
Filed under:

Why doesn't the new Start menu use Intellimenus in the All Programs list?

Common request: I want to be able to turn on personalized menus (Intellimenus) when in XP Start Menu mode. Imagine if Intellimenus were enabled with the XP Start Menu. You use 5 apps; the rest are not used much. (Studies show that 5 is the typical number
Posted by oldnewthing | 8 Comments
Filed under:

Scrollbars, part 3: Optimizing the paint cycle

Observe that we paint all 100 lines in our paint handler, even though most of them aren't visible. This is a problem if there are a large number of items, or if painting an item is time-consuming. So instead, we optimize our paint cycle so as to paint
Posted by oldnewthing | 1 Comments
Filed under:

Why doesn't Windows have an "expert mode"?

Been there done that
Posted by oldnewthing | 14 Comments
Filed under:

Scrollbars, part 2

Continuing to lay the groundwork for scrollbar discussion
Posted by oldnewthing | 1 Comments
Filed under:

More terse Q&A on Tweak UI 2.10

I'm going to try to alternate between programming entries (where I actually try to teach something) and random entries (where I get to spout off or go into storytelling mode). So here's another random entry. Why does Tweak UI put up a totally incomprehensible
Posted by oldnewthing | 2 Comments
Filed under:

The scratch program

The most boring program on the planet
Posted by oldnewthing | 23 Comments
Filed under:

Why do you have to click the Start button to shut down?

Raymond answers one of those annoying trivia questions.
Posted by oldnewthing | 21 Comments
Filed under:

Tweak UI 2.10

Assorted Q&A on the latest version
Posted by oldnewthing | 11 Comments
Filed under:
 
Page view tracker