hbmBitmap = CreateDIBSection( hDC, &bmi, DIB_RGB_COLORS,
(void**)&pBitmapBits, NULL, 0 );
SelectObject( hDC, hbmBitmap );
SetTextColor(hDC, RGB(100,100,100));
SetBkColor( hDC, RGB(255,255,255));
SetBkMode(hDC, OPAQUE);
SetTextAlign( hDC, TA_TOP );
ExtTextOut(hDC, 0, 0, 0, NULL, str, strlen(str), NULL);
-------------------------------------------------
then I watch memory at the pointer pBitmapBits.It is still all 0x00.
I had check return value of each function.and it's all OK.
where's the problem??
Bookmarks