Results 1 to 7 of 7

Thread: Repost: Replacing Text In Start Button

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hi,

    I want to be able to replace the text in the start button,
    and do not want to use BitBlt, but some api method instead.

    i tried:
    SendMessage
    SetWIndowText
    SetWindowLong
    EnumChildWindows
    and had no success....
    maybe i did not do it in the correct order, i dont know.

    DocZaf
    {;->

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305
    If it's part of your program, I can't help you. But if you want another program that can do that and a whole bunch of other cool things, get WinBoost 2000.

    bob

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    thanks, its part of my program.....

  4. #4
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Hello Zaf!

    Zaf, I don't know how to change the text of the "Start" button, but know how to hide it. Hopes, this work buddy.


    Code:
    Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
    Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    
    Sub Main()
      Dim lng_Parent As Long
      lng_Parent = FindWindow("Shell_TrayWnd", "")
      
      Dim lng_Handle As Long
      lng_Handle = FindWindowEx(lng_Parent, 0, "Button", vbNullString)
      
      Call p_Hide_StartButton(lng_Handle)
      'Call p_Show_StartButton(lng_Handle)
    End Sub
    
    Function p_Hide_StartButton(lng_Handle As Long)
      'This Function Hides the Start Button'
      ShowWindow lng_Handle, 0
    End Function
    
    Function p_Show_StartButton(lng_Handle As Long)
      'This Function Shows the Start Button'
      ShowWindow lng_Handle, 5
    End Function
    Chemically Formulated As:
    Dr. Nitro

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Thanks for that Nitro, I already got the show/hide

    Still, cheers again.
    {;->
    Zaf

  6. #6
    Addicted Member
    Join Date
    Mar 2000
    Location
    Gainesville, FL
    Posts
    131
    Your problem is that the Start Button isn't text, it's an image. You can set and get the text all you want, and you are actually setting it, but you won't see it because it's being covered up by the image.

    Hope that helps.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554

    Thanks

    Sure does, thanks Raydr

    {;->

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width