Главная страница | назад





Article #17261: Gaining access to the TBitmap types used by the Windows API?

 Question and Answer Database
FAQ2261C.txt Gaining access to the TBitmap types used by the Windows API?
Category :Windows API
Platform :All
Product :C++Builder 1.x
Question:
How to I gain access to the TBitmap types used by the Windows API
function GetObject()?
Answer:
The Windows and Graphics headers have two different
definitions of TBitmap.
When the type of graphic (bitmap, icon, or metafile)
is known, store the graphic in its specific type object
(TBitmap, TIcon, or TMetafile, respectively). Otherwise,
use a TPicture object which can hold any type of
TGraphic.
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99