|
|
1.1 root 1: Sample: Dynamic dialog creation
2:
3: Summary:
4:
5: Usually an application will define a dialog template in an
6: RC or DLG file, then create a dialog at run time from that.
7: However, it is possible to create the dialog template at run
8: time. This sample shows how to do this for Win32.
9:
10: More Information:
11:
12: The dialog template in Win32 is conceptually similar to
13: the Windows 3.1 version, but is different enough to require
14: some porting work. For example, any strings are now stored
15: in unicode. The dialog template format is documented in the
16: associated help file.
17:
18: RUN-TIME DEPENDENCY!!!
19:
20: One of the dialogs uses a custom control which is expected to
21: be defined in the spincube.dll file. The dyndlg sample tries to
22: load this DLL at run time in the following location:
23: "..\spincube\spincube.dll"
24: I.e. in a directory of the same level, but named spincube. This
25: can obviously be trivially changed, and the sample recompiled.
26: Spincube is another sample distributed on the Win32 SDK.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.