Autor Beitrag
cd1010
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 03.02.07 13:11 
Hallo,

ich würde gerne den Windows Desktop hinter meiner Form1 ausblenden bzw. schwarz machen.

weis jemand wie das geht???

ist echt sehr wichtig brauche das für die schule!!!

schon mal danke im voraus!!!

Gruß

CD
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Sa 03.02.07 13:47 
hi,
erstell doch einfach ein zweites formluar,und setzte
> die hintergrundfarbe auf schwarz,
> den borderstyle auf bsnone,
> und maximiere das ganze fenster
> zeige dann deine form1 davor an.

ist das einfachste denk ich, oder?

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
cd1010 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 03.02.07 14:06 
Ja schon, aber geht das nicht auch so das man den Desktop direkt auf schwarz setzten kann?!

CD
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Sa 03.02.07 14:09 
naja ob das direkt geht weiß ich net, aber ich könnte dir noch folgende Tipps geben:

Die Desktop-Icons ausblenden:
www.swissdelphicente...e/showcode.php?id=83

Ein Desktop Hintergrund setzen (kannst ja n schwarzes .bmp oder .jpg nehmen):
www.swissdelphicente...e/showcode.php?id=75

Vllt müsstest du dann noch den Desktop aktualisieren:
www.swissdelphicente.../showcode.php?id=108

hoffe das kommt dann schon eher hin ;)

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
cd1010 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 03.02.07 15:03 
Ok danke!

Aber vielleicht kennt sonst noch jemand eine andere Lösung?!
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Sa 03.02.07 15:12 
user profile iconhibbert hat folgendes geschrieben:
naja ob das direkt geht weiß ich net, aber ich könnte dir noch folgende Tipps geben:

Die Desktop-Icons ausblenden:
www.swissdelphicente...e/showcode.php?id=83

Ein Desktop Hintergrund setzen (kannst ja n schwarzes .bmp oder .jpg nehmen):
www.swissdelphicente...e/showcode.php?id=75

Vllt müsstest du dann noch den Desktop aktualisieren:
www.swissdelphicente.../showcode.php?id=108

hoffe das kommt dann schon eher hin ;)

Und dann könntest du noch die Startleiste per ShowWindow (SW_HIDE) ausblenden...
Fabian E.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 554

Windows 7 Ultimate
Visual Studio 2008 Pro, Visual Studion 2010 Ultimate
BeitragVerfasst: Sa 03.02.07 15:14 
welchen titel hat die startleiste denn?
cd1010 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 03.02.07 15:14 
Ok und wie geht das genau???
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Sa 03.02.07 15:41 
Hmm.. SendMessage(ExplorerHandle, WM_Close, 0, 0); ? :mrgreen: Jaaa dumme idee. ich weis.

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 03.02.07 15:42 
user profile iconcd1010 hat folgendes geschrieben:
Ok und wie geht das genau???

Fragen wir mal anders: Was hast du denn bis jetzt?
Ich meine, du wirst ja sicher dir den angesprochenen Befehl angesehen haben und versucht haben den zu benutzen oder hier im Forum was dazu zu finden, oder?
cd1010 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 03.02.07 15:52 
Ok vielen Dank hab es hin bekommen!!!!!!!!
Renegade
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 358

Win XP Pro, Win 7 Beta
BDS 2006
BeitragVerfasst: Sa 03.02.07 18:43 
Na die Lösung möchte ich sehen! Ich ahne da nämlich nichts gutes!

_________________
Sokrates (468 v.Chr. - 399 v.Chr.)
"Es ist keine Schande, nichts zu wissen, wohl aber, nichts lernen zu wollen."
cd1010 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 03.02.07 19:21 
ich hab es so gemacht, ist das ok?

AUS

ausblenden Delphi-Quelltext
1:
2:
ShowWindow(FindWindow(nil, 'Program Manager'), SW_HIDE);
ShowWindow(FindWindow('Shell_TrayWnd', nil), SW_HIDE);


------------------------------------

EIN

ausblenden Delphi-Quelltext
1:
2:
ShowWindow(FindWindow(nil, 'Program Manager'), SW_SHOW);
ShowWindow(FindWindow('Shell_TrayWnd', nil), SW_SHOW);


Moderiert von user profile iconmatze: Delphi-Tags hinzugefügt
Renegade
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 358

Win XP Pro, Win 7 Beta
BDS 2006
BeitragVerfasst: Sa 03.02.07 20:54 
Wow - damit habe ich nach diesem Threadverlauf nicht gerechnet.
Nö - das ist so schon in Ordnung - ich hätte es zumindest genau so gemacht!

_________________
Sokrates (468 v.Chr. - 399 v.Chr.)
"Es ist keine Schande, nichts zu wissen, wohl aber, nichts lernen zu wollen."
cd1010 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: So 04.02.07 00:28 
Ok! dann kann ich es ja jetzt so lassen