CComboBox::GetLBTextは、コンボボックスのリストボックス領域で選択されている項目のテキストを取得するメンバ関数・・・。
GetLBTextLenで長さを取得したので、GetLBTextでテキストを取得する・・・。
pComboBox1->GetLBTextLenでテキストの長さを取得したら、バッファptszTextを生成・・・。
pComboBox1->GetLBTextでテキストを取得し、ptszTextに格納・・・。
AfxMessageBoxでptszTextを表示・・・。
でButton2を押すと、
"あいうえお"が出る・・・。
だと、
"123"で・・・。
だと、
"ABC"となる・・・。
Sample/CComboBox.h at master · bg1bgst333/Sample · GitHub
Sample/CComboBox.cpp at master · bg1bgst333/Sample · GitHub
Sample/CComboBoxDlg.h at master · bg1bgst333/Sample · GitHub
Sample/CComboBoxDlg.cpp at master · bg1bgst333/Sample · GitHub
Sample/resource.h at master · bg1bgst333/Sample · GitHub
Sample/CComboBox.rc at master · bg1bgst333/Sample · GitHub
Sample/stdafx.h at master · bg1bgst333/Sample · GitHub
Sample/stdafx.cpp at master · bg1bgst333/Sample · GitHub