Current area: HOME -> Windows -> Controls & Components
Controls & Components
AutoSize
To show how to programmatically position your controls at run time so that the controls and their surrounding form remain proportionately the same size regardless of the display resolution or the dots per inch of the display driver's screen fonts.
Basics for using a ListView common control.
This creates a Control, adds * some icon images and allows the text and image for each item to be changed * as selected by various menu items. C source
C++ source To demonstrate how to aggregate an OCX control I
have used the MFC control wizard to create a control called 'Number' which can be found in a directory of that name. It has two properties called 'Number1' and 'Number2' and has no methods. Each property is in fact a 'short' and the control simply draws these values in its window.
CLRCTRL - Color Selector Custom Dialog Control
Is a kit that makes it easy for Microsoft Windows 3.0 programmers to include color selection controls in their application dialogs. With C sources.
Enhanced listbox control v1.0
ListBoxEx is an enhanced listbox control that allows in-place items editing, drag and drop, add/remove/move-up/move-down buttons.
GLBEDIT: Raises Text Size Limit for Edit Controls
GLBEDIT demonstrates how an edit control can have its own data segment and thus increase its text size. By default, the buffer for an edit control is allocated from the application's data segment. Space is a scarce resource in the data segment because the segment also stores information for othe...
IEList32: "Inline Edit" Listbox with SRC
This is a custom control which creates an ownerdraw listbox and handles * double-clicks and an edit message from the parent to allow the user to * edit the listbox item "inline". C source
Library to Implement Tool Bars (C source)
This set of routines implement the slick "toolbar" found in Microsoft Word for Windows, Excel etc. They are written and compiled using Borland C++ 2.0.
LISTFUN: Nice effect example using a listbox (C src)
This example uses an ownerdraw listbox to contain a list of checkboxes and associated text. The listbox tracks the checkbox handles and handles the scrolling automatically.
RichEdit example program.
Demonstrates some basics of a RichEdit control. Allows you to change the text color on the fly, save and load RTF data using stream callbacks. C source
Stealth v.4.1.4
STEALTH v.4.1.4 This SDI application shows how to create an application that doesn't show up in the task bar in your Windows 95 or Windows NT 4.0. (The application shouldn't show up in the task list in Windows NT 3.51, either, but I'm not at liberty to test that, I'm afraid.) The application shows...
The CMagmaEdit Class
The CEdit editor class from the Microsoft Foundation Classes (MFC) has a limitation in that it cannot edit more than 64K bytes of text. The Magma Editor DLL overcomes this restriction by allowing you to edit text as large as the memory which Microsoft Windows will globally allocate. C++ code.
Transparent Label Control (C src)
This example demonstrates a "transparent" control in the form of moveable transparent 3-D label controls displayed over a bitmap on a dialog box. The label control is self-contained and displays a dialog box with an edit control when double-clicked to allow the control's text to be changed.
Vertical Tab Control example
This example demonstrates how to create and maintain a vertical "tab control" using the ever popular ownerdraw listbox. This example displays only text, but adding a bitmap or structure is simple as the listbox item data is not used in this example.
Windows API Classes v1.0
These are a very basic set of classes that aid in programming a dialog without using resource script nor help from the IDE. Uses pure API calls so it's a nice tutorial for beginners and even useful code for some advanced users. You'll need intermediate knowledge of C++ and some little understandi...
Windows API Classes v1.0
These are a very basic set of classes that aid in programming a dialog without using resource script nor help from the IDE. Uses pure API calls so it's a nice tutorial for beginners and even useful code for some advanced users. You'll need intermediate knowledge of C++ and some little understanding ...