Controlling Bitmap Display with Commands

The ew commands for embedded bitmap windows and the HDisplayBmp command for extended bitmap windows include a filename. This filename identifies which bitmap is displayed in the window.

The filenames in ew and HDisplayBmp commands can also include commands that control how the bitmap is displayed. You can use these commands to perform any of the following tasks:

Display different bitmaps depending on the type of display adapter used (this technique is known as making the bitmap device-aware).

Display captions with a bitmap.

Display a bitmap in MCGA (320-by-200, 256-color) mode.

Protect a bitmap from unauthorized copying.

Commands used with bitmap filenames are enclosed in square brackets ([ ]) and appear immediately before the filenames of the bitmaps they affect. More than one command can appear within the brackets; the following sections give examples of the effects of those commands.