예제 #1
0
void DndTest::DragAndDrop(Point p, PasteClip& d)
{
	if(d.IsAvailable("files")) {
		files = GetClipFiles(d.Get("files"));
		Refresh();
	}
}
예제 #2
0
WString GetWString(PasteClip& clip)
{
	GuiLock __;
	if(clip.Accept("wtext")) {
		String s = ~clip;
		return WString((const wchar *)~s, wstrlen((const wchar *)~s));
	}
	if(clip.IsAvailable("text"))
		return (~clip).ToWString();
	return Null;
}
예제 #3
0
bool IsAvailableFiles(PasteClip& clip)
{
	return clip.IsAvailable("files");
}