Dynamic Dialog Boxes

Some applications require that the dialog box be altered as the program operates. For example, a database application would need to add and subtract fields from a data-entry dialog box to match the structure of the underlying database. For simple changes, the child window controls in the dialog box can be manipulated directly. For example, MoveWindow can be called to relocate a control. For complete control over a dialog box during runtime, the application can modify the dialog box definition in memory. This is not a simple matter because the definition of a dialog box contains three separate data structures, each with variable length fields.

The CreateDialogIndirect, CreateDialogIndirectParam, DialogBoxIndirect, and

Get Microsoft Windows 2000 API SuperBible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.