c++ - ImageList and BltBit - ting -


I have trouble in the HDC of the device from the pre-made Compactable HDC in CE bluetoothbit.

The following code works:

  hdc = pdis-> HDC; FillRect (hdc, & amp; (pdis- & gt; rcItem), (HBRUSH) gatestock object (blackbrew)); ImageList_Draw (Hilb, Image Index, HDC, 15, 30, ILD_NOML);  

Although the following draw only the black rectangle and do not place the image on top.

  hdc = pdis-> HDC; HDCME = Contremable DC (HDC); FillRect (hdc, & amp; (pdis- & gt; rcItem), (HBRUSH) gatestock object (blackbrew)); ImageList_Draw (Hitam, Image Index, HDCMM, 0, 0, ILD_NOML); Bitblatt (HDC, 15, 30, 130, 100, HDCMM, 0, 0, SRCCOPI);  

Any idea is most welcome.

Best Relationship E

Do not do that you think it does is. From the linked page:

Before using any application memory device reference for drawing processes, you must choose a bitmap of the right width and height in the device reference. This can be done using the function to specify the height, width and color organization in the call.

Device references are an abstract, behind them should be a storage - a screen or, in your case, bitmap.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -