Files
easy7zip/Windows/Control/ComboBox.cpp
Igor Pavlov 8c1b5c7b7e 3.13
2016-05-28 00:15:41 +01:00

24 lines
428 B
C++
Executable File

// Windows/Control/ComboBox.cpp
#include "StdAfx.h"
#include "Windows/Control/ComboBox.h"
#include "Windows/Defs.h"
namespace NWindows {
namespace NControl {
int CComboBox::GetLBText(int index, CSysString &string)
{
string.Empty();
int aLength = GetLBTextLen(index);
if (aLength == CB_ERR)
return aLength;
aLength = GetLBText(index, string.GetBuffer(aLength));
string.ReleaseBuffer();
return aLength;
}
}}