adamsmith774
Programmer
I'm pretty new to programming so its probably something simple.... when I put bitmaps into my project a veiw them in the resource editor they're fine, but in the program they're split down the middle with the left side displayed on the right.
Here's some of the code... the beginpaint and endpaint are in another section:
C hMemDC = CreateCompatibleDC(hDC);
// Select the bitmap into the device context
HBITMAP hOldBitmap = (HBITMAP)SelectObject(hMemDC, m_hBitmap);
// Draw the bitmap to the destination device context
if (bTrans)
TransparentBlt(hDC, x, y, GetWidth(), GetHeight(), hMemDC, 0, 0,
GetWidth(), GetHeight(), crTransColor);
else BitBlt (hDC, x, y, GetWidth(), GetHeight(), hMemDC, 0, 0, SRCCOPY)
GetWidth and Getheight get the width and heights of the bitmaps.
bTrans is a boolean saying whether or not i'm using transparency.
Here's some of the code... the beginpaint and endpaint are in another section:
C hMemDC = CreateCompatibleDC(hDC);
// Select the bitmap into the device context
HBITMAP hOldBitmap = (HBITMAP)SelectObject(hMemDC, m_hBitmap);
// Draw the bitmap to the destination device context
if (bTrans)
TransparentBlt(hDC, x, y, GetWidth(), GetHeight(), hMemDC, 0, 0,
GetWidth(), GetHeight(), crTransColor);
else BitBlt (hDC, x, y, GetWidth(), GetHeight(), hMemDC, 0, 0, SRCCOPY)
GetWidth and Getheight get the width and heights of the bitmaps.
bTrans is a boolean saying whether or not i'm using transparency.