Results 1 to 2 of 2

Thread: Can I change the caption of a button?

  1. #1

    Thread Starter
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720

    Can I change the caption of a button?

    A button on another program? If it is not a graphic but normal command button, do I send SetText or something?
    asdf

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    As long as you have the hWnd...
    VB Code:
    1. Public Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, _
    2.                                                                            ByVal lpString As String) _
    3.                                                                            As Long
    4.  
    5. Call SetWindowText(hwnd, "Some Text")
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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