the RECT with DrawTextEx() is make me confused
see these code:
RECT b={test.rcPaint.left+2, test.rcPaint.top, test.rcPaint.right-2, test.rcPaint.bottom};
imglabel.DrawText(inst->strCaption, b);
now see the DrawText(), on image class:
void DrawText(string strText,RECT HDCrect)
{
char *text=(char*)strText.c_str();
DrawTextEx(HBitmap,text,-1,&HDCrect,DT_LEFT,NULL);
//HBitmap is my BitmapDC class that can return HBITMAP and HDC
}
by some reason, i can't use the top=0 and Left=1. because interfere with the Region results with HBITMAP.
can anyone explain to me the diference bettwen the PAINTSTRUCT hdc and the memory HDC?
(maybe is there the problem for not use the top=0 and Left=1)