在VC++中有个函数:<br>BOOL WINAPI DrawState(<br> HDC hdc, // handle to device context<br> HBRUSH hbr, // handle to brush<br> DRAWSTATEPROC lpOutputFunc, // pointer to callback function<br> LPARAM lData, // image information<br> WPARAM wData, // more image information<br> int x, // horizontal location of image<br> int y, // vertical location of image<br> int cx, // width of image<br> int cy, // height of image<br> UINT fuFlags // image type and state<br>);<br><br>可以完成这个功能,但是我在DELPHI中使用时总是报错。<br>我在VC中的一条语句:<br>DrawState(hdc,null,null,(LPARAM)bitmap1,0,32,32,0,0,DST_BITMAP);