HB_FUNC(BMP_PAINT)
{
HWND hWnd;
HBITMAP hBitmap;
HDC memDC, hDC;
RECT rect;
RECT aSource;
BITMAP bm;
int nMode;
hWnd = (HWND) hb_parnl (1);
hBitmap = (HBITMAP) hb_parnl (2);
nMode = hb_parni (3);
GetClientRect(hWnd, &rect);
458 // hDC = GetDC (hWnd); // obtine un hDC para toda el area del cliente (se puede pintar en cualquier lugar del area del cliente)
459 PAINTSTRUCT ps;
460 hDC = BeginPaint (hWnd, &ps); // obtiene un hDC solo para el area invalida (area que debe ser repintada) en un mensaje WM_PAINT
so i ask Antonio
In C code all variables declarations must go before the code, so please move that line here: