다음을 통해 공유


CString Formatting and Message-Box Display

A number of functions are provided to format and parse CString objects. You can use these functions whenever you have to manipulate CString objects, but they are particularly useful for formatting strings that will appear in message-box text.

This group of functions also includes a global routine for displaying a message box.

CString Functions

AfxExtractSubString

Extracts substrings separated by a single character from a given source string.

AfxFormatString1

Substitutes a given string for the format characters "%1" in a string contained in the string table.

AfxFormatString2

Substitutes two strings for the format characters "%1" and "%2" in a string contained in the string table.

AfxMessageBox

Displays a message box.

See Also

Reference

CStringT Class

Concepts

MFC Macros and Globals