Updating bar caption >

This is a discussion on Updating bar caption > within the C++ Programming forums, part of the General Programming Boards category; how do you update the caption in the top bar ? I want to tell the fps. ____________________________ |Bar Caption ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    27

    Updating bar caption >

    how do you update the caption in the top bar ? I want to tell the fps.

    ____________________________
    |Bar Caption |-|o|X|
    ----------------------------------------- |
    | |
    |
    |
    |
    |
    |
    |
    |
    |
    Last edited by slx47; 05-12-2002 at 02:16 PM.

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    The SetWindowText function changes the text of the specified window’s title bar (if it has one). If the specified window is a control, the text of the control is changed.

    Code:
    BOOL SetWindowText(
    
        HWND hWnd,	// handle of window or control
        LPCTSTR lpString 	// address of string
       );
    Parameters:

    hWnd:
    Identifies the window or control whose text is to be changed.

    lpString:
    Points to a null-terminated string to be used as the new title or control text.
    hope that helped
    "There are three kinds of people in the world...
    Those that can count and those that can't."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Updating a progress bar
    By NewGuy100 in forum C++ Programming
    Replies: 2
    Last Post: 03-13-2006, 01:00 PM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 01:32 PM
  4. progress bar newbie
    By WaterNut in forum Windows Programming
    Replies: 18
    Last Post: 08-09-2004, 02:42 PM
  5. Caption Bar Color!
    By Anonymous Cowar in forum Windows Programming
    Replies: 2
    Last Post: 11-27-2002, 02:05 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21