SAMPLE: Generic Custom Control Sample Code in Software LibraryLast reviewed: July 22, 1997Article ID: Q67250 |
3.00 3.10
WINDOWS
kbprg kbfile
The information in this article applies to:
The Microsoft Software Library contains an archive file CUSTCONT that contains the source code for a generic custom control. The following basic custom control features are demonstrated:
Registering the control class Creating the control Painting the control Changing the font in the control Gaining and losing focus Moving and sizing the controlThe control is essentially a three-dimensional static rectangle with text. The functions necessary to interact with the Windows Dialog Editor are implemented in a separate module. These functions are documented in Chapter 20 of the "Microsoft Windows Software Development Kit Guide to Programming" for version 3.0. CUSTCONT contains two archive files. The first, CTL.ZIP, contains the sources for the custom control DLL. The second, CTLTEST.ZIP, contains the sources for a small program that demonstrates the use of the control. Download CUSTCONT.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
|
Additional reference words: 3.00 3.10 softlib CUSTCONT.EXE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |