I have a following dialog
Code:
IDD_ABOUTBOX DIALOG DISCARDABLE 22, 17, 230, 75
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "About"
FONT 8, "System"
BEGIN
ICON IDI_MYPLAYER,IDC_MYICON,14,9,20,20
LTEXT "MyPlayer Version 1.0",IDC_STATIC,49,10,119,8,
SS_NOPREFIX
LTEXT "Copyright (C) 2007",IDC_STATIC,49,20,119,8
DEFPUSHBUTTON "OK",IDOK,195,6,30,11,WS_GROUP
EDITTEXT IDC_OSVER,49,36,144,32,ES_MULTILINE | ES_AUTOVSCROLL |
ES_AUTOHSCROLL | ES_READONLY
END
In the Dialog procedure I do the following:
Code:
switch (message)
{
case WM_INITDIALOG:
{
SetDlgItemText(hDlg,IDC_OSVER,"Hello\nworld");
}
return TRUE;
...
}
But the text does not split in two lines... It is shown on one line.
And if the text is longer than the EditBox - the scroll bar does not appears...
How could I add the multiline text to the Multiline editbox on dilog opening, so the scrollbars will be visible when needed?