I have a fuction that paints some bitmaps called paintbits(CPaintDC* pdc), which I call from my OnPaint() function like this:
void CSimuladorDlg::OnPaint()
{ CPaintDC dc(this);
paintBits(&dc);
....
}
I want a separate functions because I will be doing more stuff in there.
It works until I try to use the BitBtl funcion, my code is :
BOOL BitBlt(
int x,
int y,
int nWidth, // the width (in logical units) of the destination rectangle and source bitmap.
int nHeight, // the height (in logical units) of the destination rectangle and source bitmap.
CDC* pSrcDC,
int xSrc,
int ySrc,
DWORD dwRop
);
Looks like you are passing 0 (zero) for the width and the height - which will almost certainly do
nothing.
It should also be pdc->BitBlt..... not pdc::BitBlt