Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help me..please....

Status
Not open for further replies.

BxyzB

Programmer
Joined
Jan 21, 2003
Messages
9
Location
IL
why it's doesn't work ???

constructor TRectThread.Create(NewDC : HDC; X, Y: Integer);
begin
DC:=NewDC;
XLocation:=X;
YLocation:=Y;
FreeOnTerminate := True;
bmp:=TBitMap.Create;
bmp.Width:=40;
bmp.Height:=40;
inherited Create(True);
end;

procedure TRectThread.Execute;
begin
DrawPoint;
end;

procedure TRectThread.Start;
Begin
Resume;
End;

procedure TRectThread.Stop;
Begin
if not Suspended Then
Begin
Suspend;
End;
End;

procedure TRectThread.DrawPoint;
begin
While Not(Terminated) Do
begin
Begin
begin
bmp.Canvas.Handle:=DC;
bmp.Canvas.Rectangle(10,10,100,100);
end;
End;
sleep(100);
end;
end;



how can i draw over the dc ?

thanks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top