
 BITMAP: Draws and Manipulates Bitmaps in Menus and in
 Client Windows
 
 BITMAP demonstrates creating, loading, and stretching
 bitmaps. It also shows how to change the foreground and
 background of a bitmap using raster operations, how to
 trap mouse messages, and how to display bitmaps in menus.
 
 BITMAP draws a dog, a cat, or a multi-colored box bitmap,
 according to the selection on the Bitmap menu. The Pattern
 menu updates the background of the client window to black,
 white, zigzag pattern, or crosshatch pattern. The Mode
 menu sets the foreground and background of the next
 displayed bitmap to white-on-black, black-on-white, or
 color-on-color.
 
 To display the selected bitmap, click the right mouse
 button in the BITMAP main window. To display the bitmap in
 a different size, click and drag with the left mouse
 button to define a region. The bitmap is stretched or
 compressed to fit the region when you release the mouse
 button.
 
 BITMAP was built and tested under Microsoft(R) Windows(TM)
 version 3.1.
 
 KEYWORDS: outline; bmp; MoveTo; LineTo; CreatBitmap;
 LoadBitmap; BitBlt; PatBlt; StretchBlt; SetStretchBltMode;
 CreateSolidBrush; CreateCompatibleBitmap;
 CreatePatternBrush; CreateCompatibleDC; SelectObject;
 GetObject; CreateMenu; GetMenu; AppendMenu; ModifyMenu;
 CheckMenuItem; PostQuitMessage; SetRectEmpty;
 GetClientRect; WM_ERASEBKGND; WM_LBUTTONUP; WM_RBUTTONUP;
 WM_MOUSEMOVE; SetCapture
 
 TAGS:
