Protecting Bitmaps from Copying

Instead of granting users the ability to copy bitmaps to the Clipboard, you can protect copyrighted images in the title. For embedded windows, this is easy: simply don't include CopyBmp commands for embedded bitmaps. For extended windows, specify a command of the following form before the bitmap filename in the HDisplayBmp command:

[nocopy]bitmapfile

For example, the following command prevents users from copying the bitmap AZ_NICK.DIB to the Clipboard:

!HDisplayBmp(hwndContext, qchPath, "[nocopy]!az_nick.dib", "Grand Canyon") 

In this command, the exclamation point (!) before the filename means that the AZ_NICK.DIB file is stored in the file system for the USA.MVB file.