Thanks for the example. I have adapted it to my application:
Code:
//build top line of the form
int chars;
char topLeftCorner = '┌';
char topRightCorner = '┐';
char bottomLeftCorner = '└';
char bottomRightCorner = '┘';
char topT = '┬';
char bottomT = '┴';
char leftT = '├';
char rightT = '┤';
char crossCorner = '┼';
char horizontalLine = '─';
char verticalLine = '│';
char topLine[100] = " ";
size_t str_len = strlen(topLine);
topLine[str_len++] = '┌';
for (chars=1; chars<=86; chars++)
{
topLine[str_len++] =horizontalLine;
}
topLine[str_len++] =topRightCorner;
topLine[str_len] = '\0';
//Send the top line to the RichEdit control
SendDlgItemMessage( hwndDlg, IDC_RICHEDIT, WM_SETTEXT, 0, (LPARAM) topLine );
but it still sends:
+--------------------------------------------------------------------------------------+
to my form.