Last updated:
3. June 2002
(Start sub-menu)
User Interface Programming Column
Code Archive
Splitter Controls and Dialog Resizing
(End sub-menu)
Here is the most popular reusable code from the User Interface Programming column. This is exclusively code that you just plug in, and it works—you don’t have to change your existing programs, be they straight Windows API or MFC.
The article lists include all existing download links; this page only lists the most popular.
Module | Description |
---|---|
Window Subclassing |
To really reuse or build upon existing GUI code in Windows, you almost always need to use some form of window subclassing. Here is a small subclassing library that provides safe (as safe as possible, anyway) subclassing. The article describing this library is available online at the Windows Developer Magazine web site. |
Dialog Resizing |
Resizable dialogs let the user change the default size to see more data, in a listbox or edit control, for example. A feature-rich layout manager requires a lot of code to do right, but here’s a modest implementation that can easily handle automatic dialog resizing for most situations. |
Default Button Fix |
The default button is a great convenience for users, but it’s easy to end up with a dialog that sometimes contains a disabled default button, or paints a button as though it were the default, even though it isn’t. Here’s some reusable code to help keep your dialog’s use of default buttons correct. |
The World’s Smallest Icon Editor |
Icon editor as a reusable DLL. Also demonstrates how to make a DLL as small as possible by removing unnecessary CRT stuff. |
Text Editor |
TextEdit: The text editor from my book Programming Industrial Strength Windows. |
Range Slider |
(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)
This code is offered “as is,” with no warranties on my part and no obligations on your part. Use it any which way you like, be your purpose commercial or personal.
All demo or installation links are directly executable, while all code is zipped.
You can get the WinZip program through the link below.
Executable downloads have been compressed using UPX. This is a free Open Source product well worth your attention.