source: trunk/WPSundoc/WPImage_info.txt@ 90

Last change on this file since 90 was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

File size: 900 bytes
Line 
1 // now we have the WPImageFile...
2 // in any case, LOCK it so it won't go dormant
3 // behind our butt
4 _wpLockObject(pobjImage);
5
6 // now we need to return a HBITMAP... unfortunately
7 // WPImageFile does NO reference counting whatsover
8 // when doing _wpQueryBitmapHandle, but will create
9 // a new HBITMAP for every call, which is just plain
10 // stupid. So that's what we need the image cache
11 // for: create only one HBITMAP for every image file,
12 // no matter how many times it is used...
13
14 // so check if we can find it in the cache
15 if (fLocked = LockImages())
16 {
17 PLISTNODE pNode = lstQueryFirstNode(&G_llImages);
18 while (pNode)
Note: See TracBrowser for help on using the repository browser.