ultimatepp/reference/FileSelLazyIcon/main.cpp
cxl 62f01e62a5 .reference
git-svn-id: svn://ultimatepp.org/upp/trunk@8243 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-03-08 19:35:54 +00:00

16 lines
274 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
static void sLoadImage(const String& path, Image& result)
{
result = StreamRaster::LoadFileAny(path);
}
GUI_APP_MAIN
{
FileSel fs;
fs.AllFilesType();
fs.WhenIconLazy = sLoadImage;
fs.ExecuteOpen();
}