|
void __fastcall TForm1::FormPaint(TObject *Sender)
{
HDC hdc;
PAINTSTRUCT ps;
int x, y;
hdc = ::BeginPaint( this->Handle, &ps );
TextOut( hdc, 10, 30, "AAA", 3 );
EndPaint( this->Handle, &ps );
}
위와 같이 하면 Text가 나오지 않구요..
HDC hdc;
hdc = GetDC(this->Handle);
TextOut( hdc, 10, 10, "rrr", 3);
ReleaseDC(this->Handle, hdc);
이렇게 하면 나오거든요..
왜
PAINTSTRUCT 를 사용하면 다이얼로그에서 text가 써여지지 않는 건지요?
|