개발/MFC 프로그래밍

    채팅창처럼 한줄 추가 ( 433p )

    목록 상자(List Box)에 CListBox 클래스 InsertString()과 AddString() 함수를 이용하여 문자열인 항목(Item)을 추가/삭제하는 기능을 구현하는 코드를 작성하겠습니다. 단 , 추가와 삭제를 구분하여 단계별로 실습한 것이므로 참고하기 바랍니다. 리소스 ID IDC_LIST1 (List box) IDC_Edit_Input (Edit) IDC_Button_InsertString(Button) Caption = Insert String IDC_Button_AddString(Button) Caption = Add String List Box의 멤버변수(m_List)를 등록합니다. m_List 멤버 변수는 Control로 합니다 Value가 아님 두번째 Edit box의 멤버 변수를..

    메시지 박스 출력하기 ( 392p)

    UpdateData(); Cstring strTmp = _T(""); strTmp.Format(_T("입력한 ID는\"%s\"이며 암호는\"%s\"입니다."), m_strID , m_strPassword); AfxMessageBox (strTmp); ======================================================================= 버튼을 만들고 그안에 소스 추가 AfxMessageBox(_T("Test Button을 클릭하였습니다."));