Menu

Changing the name of a Window

2002-09-19
2012-09-26
  • Nobody/Anonymous

    I created a program that has the user sign up for it then stores their information in a file.  How would you change the name of the window so that it shows   User - username

    username being the user's name

    I'm using a Dialog to get the information from the user if that helps any.  Email me at Slooky13@hotmail.com if you can help  or post here.

     
    • Nobody/Anonymous

      If you mean changing the caption, that's easy.

      SetWindowText(hwnd, "your text goes here, max 255 char");

      Change that hwnd to the window handle of your window or dialogbox. It works on buttons, too.

      rpeter

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.