mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
16 lines
274 B
C++
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();
|
|
}
|