Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ComboBox.cpp « Control « Windows - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: edef3a21357c6c7369c65b453d929e5be39875de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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;
}


}}