AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

How to hide Startmenu

Ein Thema von Razor · begonnen am 19. Okt 2008 · letzter Beitrag vom 26. Okt 2008
Antwort Antwort
Seite 1 von 3  1 23      
Razor
(Gast)

n/a Beiträge
 
#1

How to hide Startmenu

  Alt 19. Okt 2008, 12:51
How to do it?Startmenu not the startbutton thats a big diffrence..
Becouse i want to create a replacement..

thanks...
  Mit Zitat antworten Zitat
Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#2

Re: How to hide Startmenu

  Alt 19. Okt 2008, 12:58
You could try to redirect the messages of the button.

IOW:

YourVariable := MessageLoopOfStartButton;
MessageLoopOfStartbutton := YourCustomMessageLoop;

In YourCustomMessageLoop you can pass every message to the former message-loop except for the click-message, which you can handle yourself. This way, the button will never notice when the user clicks it
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#3

Re: How to hide Startmenu

  Alt 19. Okt 2008, 12:59
Danke,danke I will try this..I am making longhorn startmenu for vista..
  Mit Zitat antworten Zitat
Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#4

Re: How to hide Startmenu

  Alt 19. Okt 2008, 13:04
Zitat von Razor:
Danke,danke I will try this..I am making longhorn startmenu for vista..
Correct me if I'm wrong but ... Longhorn is Vista (or the former name of vista) isn't it?
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#5

Re: How to hide Startmenu

  Alt 19. Okt 2008, 13:05
Yes i messed it up a bit i mean Longhorn 4074 .Vista is 6001(SP1)
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#6

Re: How to hide Startmenu

  Alt 19. Okt 2008, 13:37
Could you make an example?
  Mit Zitat antworten Zitat
Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#7

Re: How to hide Startmenu

  Alt 19. Okt 2008, 14:13
An example ...... i can show you how to do it
(As I have no Delphi installed I dunno if it compiles ...)

First, you need a variable that holds the old WndProc. A Pointer should do the job.

To get the pointer to the WndProc you can call GetWindowLong(), to process the messages in your program, you need a seperate function
Delphi-Quellcode:
var
  OldWndProc: Pointer;

begin // Change WndProc
  OldWndProc := GetWindowLong({Handle to the Button}, GWLP_WNDPROC);
  SetWindowLong({Handle to the Button}, GWLP_WNDPROC, @NewWndProc);
end;

function NewWndProc(hWnd: HWND; uMsg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT;
begin
  if ({The Message you want})
    // Handle Message
  else // Call old WndProc
    CallWindowProc(OldWndProc, hWnd, uMsg, wParam, lParam);
end;
Something like that

To get the Handle of the button, you can use FindWindow.

You can find additional stuff by searching for "subclassing"
  Mit Zitat antworten Zitat
Apollonius

Registriert seit: 16. Apr 2007
2.325 Beiträge
 
Turbo Delphi für Win32
 
#8

Re: How to hide Startmenu

  Alt 19. Okt 2008, 14:17
You don't even need GetWindowLong. SetWindowLong returns the previous value of the specified attribute. You also avoid a possible race condition if you remove the call.
Note that changing the WndProc only works for Vista. According to the documentation you can't set a new one for a window in a different process.
Wer erweist der Welt einen Dienst und findet ein gutes Synonym für "Pointer"?
"An interface pointer is a pointer to a pointer. This pointer points to an array of pointers, each of which points to an interface function."
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#9

Re: How to hide Startmenu

  Alt 19. Okt 2008, 14:40
I made something
Miniaturansicht angehängter Grafiken
h_190.jpg  
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#10

Re: How to hide Startmenu

  Alt 19. Okt 2008, 19:30
New question> What if i disable the start button and make my own?
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 3  1 23      


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:01 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz