name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-5572165936844014&dt=1193665761703&lmt=1193665780&format=336x280_as&output=html&correlator=1193665761687&url=http%3A%2F%2Fwww.codeguru.cn%2Fpublic%2Fiframe%2Fwinapiiframe.htm&color_bg=FFFFFF&color_text=000000&color_link=000000&color_url=FFFFFF&color_border=FFFFFF&ad_type=text&ga_vid=1285758818.1193665762&ga_sid=1193665762&ga_hid=111695597&flash=9&u_h=768&u_w=1024&u_ah=740&u_aw=1024&u_cd=32&u_tz=480&u_his=8&u_java=true" frameborder="0" width="336" scrolling="no" height="280" allowtransparency="allowtransparency">
函数功能:该函数将位图的颜色数据位设置成指定值。
函数原型:LONG SetBitmapBits(HBITMAP hmbp, DWORD cBytes, CONST VOID (lpBits);
参数:
hbmp:指向要设置的位图的句柄。
cBytes:指定参数lpBits指向的数组的字节数。
lpBits:指向字节类型数组的指针。该数组中包含了指定位图的颜色数据。
返回值:如果该函数执行成功,则返回值就是在设置位图位时使用的字节数;如果失败,则返回值为0。
Windows NT:若想获得更多错误信息,请调用GetLastError函数。
备注:lpBits标识的数组必须是与WORD类型一致。
函数原型:LONG SetBitmapBits(HBITMAP hmbp, DWORD cBytes, CONST VOID (lpBits);
参数:
hbmp:指向要设置的位图的句柄。
cBytes:指定参数lpBits指向的数组的字节数。
lpBits:指向字节类型数组的指针。该数组中包含了指定位图的颜色数据。
返回值:如果该函数执行成功,则返回值就是在设置位图位时使用的字节数;如果失败,则返回值为0。
Windows NT:若想获得更多错误信息,请调用GetLastError函数。
备注:lpBits标识的数组必须是与WORD类型一致。