> Aaron,
>
> I posted this question on the palm developers forum but have not received an
> answer yet. I'm hoping that you might be able to answer this :).
hehe.. i skip over a few postings - been busy.. did not see it :(
> I am trying to modify Mitch Blevin's phlegm hack so that color and grayscale
> icons will show up in the list. However, I don't know how to do this. I have
> found that the source of the problem is here:
>
> resindex = DmFindResource(dbR, 'tAIB', 1001, NULL);
DmOpenRef dbRef;
UInt16 card;
LocalID dbID;
Coord x, y;
MemHandle iconHandle;
x = ...;
y = ...;
// set card + dbID using DmFindDatabase() or other call
dbRef = DmOpenDatabase(card, dbID, dmModeReadOnly);
iconHandle = DmGet1Resource('tAIB', 1001);
WinDrawBitmap((BitmapType *)MemHandleLock(iconHandle), x, y);
MemHandleUnlock(iconHandle);
DmReleaseResource(iconHandle);
DmCloseDatabase(dbRef);
DmGet*() works only for the currently open database, so just open your
"other" application using the DmOpenDatabase() call and close it after
you have finished with the resource.
cheers
az.
--
Aaron Ardiri
Java Certified Programmer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 656 1143 A/H: +46 8 668 78 72
if you enjoy it, then it aint work :) - rule #106 of life
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/