First I apologize if this is not the best forum for this, but I am using the VC++ software, and this is a Windows-programming question--I didn't see a place for coding in basic WinAPI...
Information: I'm creating a patcher/installer for a current project. Like most of these applications, mine has a window in the center of the app for displaying download/patch, etc. information as it runs through the process. Everything's
running smoothly except that the text runs together, it doesn't seem to accept escape-character formatting. I've even taken the time to switch all variables away from wide-chars and functions into the "A" versions--using LPWSTR's and the functions for
wide-characters, it seemed rare to have them accept formatted text. Is it possible to make an "Edit" child window class accept text formatting? Here's my current source for this portion:
void WriteInTextBox(LPSTR stringToWrite)
int maxBufferSize = SendMessage(hInfoBox, EM_GETLIMITTEXT, 0, 0);
LPSTR buffer = newchar[maxBufferSize];
GetDlgItemTextA(hPatcher, H_INFO_BOX, buffer, maxBufferSize);
SendMessage(hInfoBox, EM_LINESCROLL, 0, (SendMessage(hInfoBox, EM_GETLINECOUNT, 0, 0)));
Any help, pointers, suggestions or tips in the right direction would be GREATLY appreciated. Thank you!