Subj : Re: using bitmaps To : borland.public.cpp.borlandcpp From : Jack Sawatzky Date : Thu Nov 04 2004 09:25 pm Ed Mulroy [TeamB] wrote: >I assuming that you will be using the Windows >API to do this. > > Yes >Use Resource Workshop to put it into a resource >file and add the resource file to the project. > What is a resource file? Is it an executable? > > >At runtime load it: > LoadBitmap > > Of course I have already looked at this function, but the description is unhelpful. Could you please translate the following into English for me: HINSTNACE: The instance handle of the module whose executable file contains the bitmap to be loaded. (Most of the function descriptions are great. This one makes me feel like I am from Mars.) The rest of the steps below look fairly straightforward. Thank you very much for your help, Ed >Create a compatible device context to the screen: > CreateCompatibleDC > >Get the bitmap dimensions: > GetObject > >Select the bitmap into the device context: > SelectObject > >Copy the bitmap from the compatible device context >to the screen > BitBlt > >Delete the compatible device context > DeleteDC > >If you will be using OWL the job is easier. Look at >the Swat example that came with the compiler. >. Ed > > > >>Jack Sawatzky wrote: >>I have a small monochrome bitmap in the standard >>Windows format (.bmp). How can I draw it from >>within an application that I am creating? >> >> > > > .