示例#1
0
bool CCopyDialog::OnInit()
{
#ifdef LANG
    LangSetDlgItemsText(HWND(*this), kIDLangPairs, sizeof(kIDLangPairs) / sizeof(kIDLangPairs[0]));
#endif
    _path.Attach(GetItem(IDC_COPY_COMBO));
    SetText(Title);

    NControl::CStatic staticContol;
    staticContol.Attach(GetItem(IDC_COPY_STATIC));
    staticContol.SetText(Static);
#ifdef UNDER_CE
    // we do it, since WinCE selects Value\something instead of Value !!!!
    _path.AddString(Value);
#endif
    for (int i = 0; i < Strings.Size(); i++)
        _path.AddString(Strings[i]);
#ifndef _WIN32
    UString tmp = nameWindowToUnix(Value);
    Value = tmp;
#endif
    _path.SetText(Value);
    SetItemText(IDC_COPY_INFO, Info);
    NormalizeSize(true);
    return CModalDialog::OnInit();
}
示例#2
0
bool CComboDialog::OnInit()
{
  #ifdef LANG
  LangSetDlgItems(*this, NULL, 0);
  #endif
  _comboBox.Attach(GetItem(IDC_COMBO));

  /*
  // why it doesn't work ?
  DWORD style = _comboBox.GetStyle();
  if (Sorted)
    style |= CBS_SORT;
  else
    style &= ~CBS_SORT;
  _comboBox.SetStyle(style);
  */
  SetText(Title);
  
  NControl::CStatic staticContol;
  staticContol.Attach(GetItem(IDT_COMBO));
  staticContol.SetText(Static);
  _comboBox.SetText(Value);
  FOR_VECTOR (i, Strings)
    _comboBox.AddString(Strings[i]);
  NormalizeSize();
  return CModalDialog::OnInit();
}
示例#3
0
bool CCopyDialog::OnInit()
{
  #ifdef LANG
  LangSetDlgItemsText(HWND(*this), kIDLangPairs, sizeof(kIDLangPairs) / sizeof(kIDLangPairs[0]));
  #endif
  _path.Attach(GetItem(IDC_COPY_COMBO));
  SetText(Title);

  NControl::CStatic staticContol;
  staticContol.Attach(GetItem(IDC_COPY_STATIC));
  staticContol.SetText(Static);
  for (int i = 0; i < Strings.Size(); i++)
    _path.AddString(Strings[i]);
  _path.SetText(Value);
  SetItemText(IDC_COPY_INFO, Info);
  return CModalDialog::OnInit();
}
示例#4
0
bool CCopyDialog::OnInit()
{
  #ifdef LANG
  LangSetDlgItems(*this, NULL, 0);
  #endif
  _path.Attach(GetItem(IDC_COPY));
  SetText(Title);

  NControl::CStatic staticContol;
  staticContol.Attach(GetItem(IDT_COPY));
  staticContol.SetText(Static);
  #ifdef UNDER_CE
  // we do it, since WinCE selects Value\something instead of Value !!!!
  _path.AddString(Value);
  #endif
  FOR_VECTOR (i, Strings)
    _path.AddString(Strings[i]);
  _path.SetText(Value);
  SetItemText(IDT_COPY_INFO, Info);
  NormalizeSize(true);
  return CModalDialog::OnInit();
}