Thread: Labels in C++?!!?

  1. #1
    Unregistered
    Guest

    Unhappy Labels in C++?!!?

    Is there such thing as a LABEL in VC++ ? I find it very hard to believe that there isn't one since there are TextBox, ListBix, and even ComboBox controls but no label???

    Any helpful information is welcome!!!


    Thanx,
    Mikelo2k

  2. #2
    I assume you are talking about Win32 programming. Just use the function "TextOut()". Look it up at the MSDN website. It's just the same as Visual Basic labeling.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  3. #3
    Unregistered
    Guest
    Indeed i have tried that with no success, i can't seem to have it become visible. Any ideas why?

  4. #4
    Unregistered
    Guest
    lol, 'indeed'

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Go to MSDN and look up "Static Controls"

  6. #6
    Unregistered
    Guest
    k, did that, now what am I looking for in Static Controls?

  7. #7
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    A label, (a text string basically), is one of the static controls. You can specify them in a resource file using either CTEXT, LTEXT or RTEXT, or create them dynamically with CreateWindow() using the class name STATIC.

    If you can't get TextOut() to work, (it returns zero on failure), call GetLastError() imediately after the call and find out what you are doing wrong, (I bet it's the device context).
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Array of Runtime Labels
    By wbeasl in forum C# Programming
    Replies: 3
    Last Post: 12-20-2008, 11:53 PM
  2. Storing labels in a list?
    By arcaine01 in forum C# Programming
    Replies: 2
    Last Post: 05-10-2008, 11:10 PM
  3. Updating Labels on a Form
    By ejohns85 in forum C# Programming
    Replies: 4
    Last Post: 01-03-2007, 03:37 PM
  4. Order of access labels in class definition
    By Mario F. in forum C++ Programming
    Replies: 10
    Last Post: 06-16-2006, 07:13 AM
  5. GOTO and Labels
    By moemen ahmed in forum C++ Programming
    Replies: 13
    Last Post: 07-01-2002, 06:41 PM