[WindowsForms] Horizontal Line

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anybody know how i can put a horizontal line into my forms? i need one
to create a simple "below the line" to seperate my sumup textbox from the
other input-textboxes (like you know it from common calculations). I tried to
add a label with underlines ________, but doesn't look very pretty.

Anybody an idea?

by the way, i'm using VC++ 2005 Express Edition...
 
Here is my suggestion.

Use Window's CharacterMap with the same font as your dialog use.
You could look in your resource file for that purpose.

"MS Dialog" is a good candidate for a unicode dialog.
The character 0xAF looks OK (reverse undersore).
Other characters may be good as well.
Like Arial unicode 0x2550 (Double lines) or 0x2014 (line centered).

TCHAR szLine[BUF_SIZE];

for(int i=0; i < BUF_SIZE; i++)
szLine = 0xAF;

szLine[BUF_SIZE-1] = 0;


That's it !


19 Nov 2006 12:39:02 -0500 said:
Does anybody know how i can put a horizontal line into my forms? i need one
to create a simple "below the line" to seperate my sumup textbox from the
other input-textboxes (like you know it from common calculations). I tried to
add a label with underlines ________, but doesn't look very pretty.

Anybody an idea?

by the way, i'm using VC++ 2005 Express Edition...


____
Jean
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top