Autor Beitrag
Ivo@CoMRoK
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 258

Win XP
D3 Prof., D7 Pe.
BeitragVerfasst: So 11.12.05 19:32 
Hallo!
Also ich will bei meinem Prog den Schließen-Button entfernen(!).
Wie ich den disable weiß ich ich hab mal gelesen, dass jemand wüsste wie das geht.
Ich hab scho so viele Suchbegriffe ausgechekt das ist mir jetzt zu blöd.
Also könnt ihr mir helfen :?: ?

_________________
Fällt der Bauer tot vom Traktor, stand am Waldrand ein Reaktor.
Ein altes indianisches Sprichwort besagt:Es kann gefährlich sein gelben Schnee zu essen.
Jailbird
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 127

Windows XP Pro SP2
Delphi 7 Professional
BeitragVerfasst: So 11.12.05 19:42 
Afaik mittels SetWindowLong (siehe auch GetWindowLong)
Ivo@CoMRoK Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 258

Win XP
D3 Prof., D7 Pe.
BeitragVerfasst: So 11.12.05 20:24 
Ja und welchen Parameter muss ich da setzten?
Ich hab des ez so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure Form1.Create(Sender: TObjekt)
begin
  EnableMenuItem(GetSystemMenu(Form1.Handle, LongBool(False)),
  SC_CLOSE, MF_BYCOMMAND or MF_GRAYED);
end;

_________________
Fällt der Bauer tot vom Traktor, stand am Waldrand ein Reaktor.
Ein altes indianisches Sprichwort besagt:Es kann gefährlich sein gelben Schnee zu essen.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 11.12.05 23:20 
Wenn du schon EnableMenuItem gefunden hast, wie weit ist der Schritt bis RemoveMenu:
Zitat:

The RemoveMenu function deletes a menu item or detaches a submenu from the specified menu.
Ivo@CoMRoK Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 258

Win XP
D3 Prof., D7 Pe.
BeitragVerfasst: Di 13.12.05 17:24 
THX

_________________
Fällt der Bauer tot vom Traktor, stand am Waldrand ein Reaktor.
Ein altes indianisches Sprichwort besagt:Es kann gefährlich sein gelben Schnee zu essen.
Ivo@CoMRoK Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 258

Win XP
D3 Prof., D7 Pe.
BeitragVerfasst: Di 13.12.05 17:29 
ich habs aber jetzt mit bs:= none gemacht :wink:

_________________
Fällt der Bauer tot vom Traktor, stand am Waldrand ein Reaktor.
Ein altes indianisches Sprichwort besagt:Es kann gefährlich sein gelben Schnee zu essen.