Non mais je ne veut pas modifier l'image, juste dessiner qqch par dessus.
Le code que j'ai en ce moment :
hDC = BeginPaint(hwnd, &ps);
normalfont = CreateFont(0, 0, 0, 0, FW_BOLD, FALSE, FALSE, FALSE, ANSI_CHARSET,
OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY, FF_DONTCARE |
DEFAULT_PITCH, "Courier New");
oldfont = (HFONT)SelectObject(hDC, normalfont);
RECT r;
GetWindowRect(hwnd, &r);
DrawText(hDC, "BBB", 3, &r, DT_CENTER);
SelectObject(hDC, oldfont);
DeleteObject(normalfont);
EndPaint(hwnd, &ps);
Où hwnd est le handle de la picture box.
|