Can someone please tell me how to get a space " " before FileName. as it shows to close to the edge of the status bar.Code:SendMessage(hStatus, SB_SETTEXT, 1, (LPARAM) FileName);
Can someone please tell me how to get a space " " before FileName. as it shows to close to the edge of the status bar.Code:SendMessage(hStatus, SB_SETTEXT, 1, (LPARAM) FileName);
have you tried strcat() or _tcscat() ?
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
char *NewFileName = new char[strlen(FileName)+2];
strcpy (NewFileName, " ");
strcat (NewFileName, FileName);
strcpy (FileName, NewFileName);
delete [] NewFileName;