Last updated:
7. February 2002
(Start sub-menu)
User Interface Programming Column
Features
Splitter Controls and Dialog Resizing
(End sub-menu)
This page lists my feature articles. Most of them were published in Windows Developer Magazine—among the exceptions is “Windows 2000: The Developer’s Challenge,” which you can find in Amazon.co.uk’s Windows 2000 Botique.
Most of the articles concern user interface issues and how you as a programmer can deal with their sometimes sordid details.
This page does not include the User Interface Programming column or Tech Tips; these have their own pages.
Most of the code for these articles is in C rather than C++. The articles are listed in reverse chronological order (newest first).
Look here for books about writing.
Windows Developer’s Journal, May 2000
Create translucent windows using the layered windows of Windows 2000!
Win32 has long offered the intriguing window style known as WS_EX_TRANSPARENT, but anyone who’s used it knows it doesn’t live up to its tantalizing name. Now, Windows 2000 finally provides functioning support not only for transparent windows, but also for translucent (or “bleed-through”) windows.
Amazon.co.uk (Windows 2000 Botique) (April 2000)
Antoine de Saint-Exupéry said, “A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.” This article looks at how programmers can develop software that’s robust, reliable and usable.
You can read this article on the Amazon.co.uk web site; the article is just as relevant for Windows XP as it was for Windows 2000.
Windows Developer’s Journal, June 1999
Users who create files with long names will be unpleasantly surprised if your program displays the shorter “encoded” version of the name instead. There is a GetLongPathName() function to turn short names into long names, but for a solution that works under Win95 and NT 4, you’ll need the code presented here.
Windows Developer’s Journal, May 1999
When a user changes global settings like the color scheme, Windows notifies some windows of the change, but they are responsible for notifying, in turn, their child windows. If your window fails to pass on such a notification, the result can be a window with the wrong colors or fonts.
This article shows that such a bug exists in the Open File common dialog, and provides code for fixing the problem.
Windows Developer’s Journal, March 1999
Handling column-by-column listview sorting correctly requires some tedious custom coding, since the exact details of a “correct” sort depend greatly on the data in your listview. However, there is a lot of common logic that can be factored out, as this article shows by providing a reusable framework for sorting MFC listview controls.
Windows Developer’s Journal, October 1998
This article describes an extension to the original icon/bitmap editor (see The World’s Smallest Icon Editor). It trades additional code lines for considerably more functionality.
Kapital Data,
februar 1998
(This article is in Norwegian.)
“Dersom det eneste verktøy du har er en hammer, behandler du gjerne ethvert problem som en spiker. Dette gjelder også på Internett, som mange oppfatter som synonymt med World Wide Web (WWW). WWW er en infrastruktur som i utgangspunktet er laget for å distribuere enkel hypertekst, men mange bruker den også som applikasjonsarkitektur.”
Denne artikkelen tar for seg enkelte betenkeligheter med dette.
Windows Developer’s Journal, September 1997
This article describes 600 lines of C++ that implement a complete icon/bitmap editor. The main challenge was to get as much functionality as possible from as few lines of code as possible. Here is [then] editor Ron Burk’s WDM blurb:
“Users like to customize their software, and more Windows programs these days let users rearrange toolbars, customize menus, and so on. One feature most programs don’t provide is the ability to customize icons, toolbar bitmaps, and the like. The reason is simple: Windows offers no common dialog to handle this task. This article provides a tiny, elegant DLL that makes it easy to let users customize the icons and bitmaps in your program’s user interface.”
The follow-up article, An Extended Icon Editor, extends the editor with new functionality.
(Start bottom menu)
Top •
Home
• Articles
• Book
• Resources
Windows Developer Magazine
• R&D Books
• CMP Books
Amazon.com
• Amazon.co.uk
• Contact Petter Hesselberg
(End bottom menu)
WDM has merged with Dr. Dobbs Journal.