where hdc is the main hdc retrieved by hdc = BeginPaint(hWnd, &ps);
i thought "probably i have to convert hdc2 in HBITMAP" but when i do that it seems it takes wrong pointer or lost a pair... XD
i need also hdc2 transparent.
p.s. i'm developing on windows mobile that is the same of the normal win32 unless a couple of function like createDIBitmap are not implemented
tnx!
Last edited by EvIl_DeViL; March 21st, 2010 at 01:16 PM.
where hdc is the main hdc retrieved by hdc = BeginPaint(hWnd, &ps);
i thought "probably i have to convert hdc2 in HBITMAP" but when i do that it seems it takes wrong pointer or lost a pair... XD
i need also hdc2 transparent.
p.s. i'm developing on windows mobile that is the same of the normal win32 unless a couple of function like createDIBitmap are not implemented
tnx!
The BitBlt function is for rendering bitmaps (or parts of it) to a dc. So if you want to use it you must create (or have) a device context as a destination and one (this is hdc2) as a source. You must select a valide bitmap in the source dc (via SelectObject). Then this selected bitmap will be rendered.
Why do you want to use BitBlt to create a frame? Maybe my English isn't good enough: But what exactly is a frame in your original post? Is it a frame of 4 lines (up, down, left and right) or a bitmap?
If it is a frame of four lines you can use Rectangle (supported for CE too).
If it is a bitmap:
Bookmarks