Autor Beitrag
Rool
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 211



BeitragVerfasst: Mo 10.02.03 18:23 
Ich habe einen Dialog, den ich über eine Ressource einbinde (bzw. in Windows einbinden lasse... aber das spielt keine Rolle). Handle+DC der Form ist bekannt. Wenn ich jetzt ein Rectangle darauf male, erscheint es wie erwartet, aber wenn ich mit stretchblt ein Bitmap darauf zeichnen will, erscheint nur ein schwarzer Kasten:
ausblenden Quelltext
1:
2:
3:
4:
5:
BMP:=TBitmap.Create;
BMP.LoadFromFile(Pfad);                                 
devcon:=GetDC(hwndDlg);
//Rectangle(devcon,30,265,70,300); (keine Propleme)
StretchBlt(devcon,30,265,51,51,BMP.Canvas.Handle,0,0,BMP.Width,BMP.Height,0)


Wie kommt das? Kann mir jemand helfen?

_________________
MFG Rool
Rool Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 211



BeitragVerfasst: Mo 10.02.03 18:27 
Titel: ...
Cih bin ja sooooooo ein Trottel, muss natürlich als letzten Parameter SRCCOPY angeben. OK... sorry...

_________________
MFG Rool
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mo 10.02.03 18:27 
Hi,

wieso postest du deinen Topic eigentlich in zwei Foren? :twisted:

AXMD
Rool Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 211



BeitragVerfasst: Di 11.02.03 10:40 
Titel: ...
Weil ich nicht sicher war, wo es besser aufgehoben ist.

_________________
MFG Rool