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
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
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
Indeed i have tried that with no success, i can't seem to have it become visible. Any ideas why?
lol, 'indeed'
Go to MSDN and look up "Static Controls"
k, did that, now what am I looking for in Static Controls?
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.