다음을 통해 공유


CString 서식 지정 및 메시지 상자 표시

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

메시지 상자를 표시합니다.

참고 항목

참조

CStringT 클래스

개념

MFC 매크로 및 전역