CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2010
    Posts
    1

    How to get window caption?

    Hi!

    I have problems with GetWindowText function from WinAPI.
    I need to read window caption, I get window hwnd without any problems, but with GetWindowText I get buit-in caption (window text), but I need real one, which is depends on loged in user, example:
    Buit-in Caption text = "BackOffice"
    Caption with loged-in user = "GreatHotel - Administrator"

    With SPY++ I can see "GreatHotel - Administrator", but with GetWindowText I got "BackOffice".
    Can anyone help?

    Thanks in advance

  2. #2
    Join Date
    Apr 2009
    Posts
    598

    Re: How to get window caption?


  3. #3
    Join Date
    Jan 2010
    Posts
    1

    Re: How to get window caption?

    Thanks, I found the solution

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

Featured