DYNBEDIT: Changes Edit Control to Bedit Control at Run Time

DYNBEDIT shows how to change a normal edit control to a bedit control at run time. This allows an application to run unmodified in Microsoft(R) Windows(TM) for Pen Computing or in the retail version of Windows.

DYNBEDIT requires PENWIN.DLL, which can be found in both Microsoft Windows for Pen Computing and the Microsoft Windows version 3.1 Software Development Kit (SDK).

By default, the Windows for Pen Computing system changes an edit control to a hedit control at run time but lacks the mechanism for changing an edit control to a bedit control.

To perform this transition, the application must query the information from the edit control, destroy the edit control, and then call CreateWindow to make the new bedit control. However, this technique causes problems if you use a font other than the system font in a dialog box. For example, the font statement FONT 8,"Helv" will cause the combs of the bedit control to appear below the bottom border of the control because Windows for Pen Computing calculates the size of the combs in the system font. To avoid this problem, the application must reduce the size of the GUIDE structure in the RC structure for the new control. The system will pick a new font that matches the new GUIDE size. For more information, please see the README.TXT file.

DYNBEDIT was built and tested under Microsoft Windows version 3.1.

{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the dynbedit project." /C"samples}