
PC NC Maintenance Manual Chapter 8: Fixed File Operations
8-93
Microsoft Windows can find windows by using the class name, the title, or
both. Depending on how the application registers its name (i.e., through
AfxRegisterClass), either the class name or the window name must be
used. The easiest way to determine this is by using the Spy++ program and
experimenting with setting one or both names.
A button may be defined in the ‘offline.properties’ file as follows:
• button1 = display
• display.label = Display
• display.image = system/display.gif
• display.executable = rundll32
shell32.dll,Control_RunDLL
C:\\WINNT\\SYSTEM32\\Desk.cpl
• display.windowName = Display Properties
• display.windowClassName = #32770 (Dialog)
File ‘option.properties’
The ‘option.properties’ file has one entry, which is used to specify the loca-
tion and name of the label file for the options screen. The entry appears as:
label_file = %MMIDATABASE%\\option.txt
where MMIDATABASE is an environment variable defined in the ‘applica-
tion.properties’ file. Note that ‘\\’, not ‘/’, is required between subdirectory
names.
Button Fields
Field Meaning
label The label appearing on the button
image The image appearing on the button (optional)
executable The process to start when the button is pressed (optional)
class The name of the class to be created on each button press (optional)
systemSwitch[#] Number of the system switch for which the button is enabled (optional)
windowName The Microsoft Windows window name (window title)
windowClassName The MS windows window class name (from AfxRegisterClass lpszClassName)
Commenti su questo manuale