Пример #1
0
Файл: swnd.c Проект: goriy/sif
static void on_drives_select (void)
{
  char buf[_MAX_PATH];
  //HWND wnd = GetDlgItem (hMainWindow, IDC_DRIVES);
  int drive;
  if (DlgDirSelectComboBoxEx (hMainWindow, buf, sizeof(buf), IDC_DRIVES))  {
    drive = toupper(buf[0]) - 'A' + 1;
    if(_getdcwd (drive, buf, _MAX_PATH) != NULL)  {
      strcat (buf, "\\");
      PathCanonicalize(CurrentPath, buf);
      current_path_to_edit ();
      populate_dir ();
    }
  }
}
Пример #2
0
ULONG FASTCALL WU32DlgDirSelectComboBox(PVDMFRAME pFrame)
{
    ULONG ul;
    PSZ psz2;
    register PDLGDIRSELECTCOMBOBOX16 parg16;

    GETARGPTR(pFrame, sizeof(DLGDIRSELECTCOMBOBOX16), parg16);
    ALLOCVDMPTR(parg16->f2, MAX_VDMFILENAME, psz2);

    ul = GETBOOL16(DlgDirSelectComboBoxEx(
    HWND32(parg16->f1),
    psz2,
    SIZE_BOGUS,
    WORD32(parg16->f3)
    ));

    FLUSHVDMPTR(parg16->f2, strlen(psz2)+1, psz2);
    FREEVDMPTR(psz2);
    FREEARGPTR(parg16);
    RETURN(ul);
}