Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Archive » drag & drop
Re: drag & drop [message #8122 is a reply to message #8119] Sun, 11 February 2007 09:47 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks. Really not that complicated, is it? (What IS complicated is to support all variants, including OLE D&D, in-application D&D, X11 D&D etc....)

BTW, according to "U++ programming paradigm", I do not quite like this part:

mobilehunter wrote on Sat, 10 February 2007 18:46

just testing with codes pieces from TCtrllib directrory.
drag qtf file and the richeditor will open it.
TestDragDrop::TestDragDrop()
{
	Add(editor.SizePos());
	editor.SetFocus();
	Open();
	HWND hwnd = GetHWND();
	DragAcceptFiles(hwnd,true);
}




Opening dialog in constructor is "bad practice" (of course, it works as expected and in experimental code it is OK).

Anyway, notice quite useful methods in Ctrl::

	virtual void    NcCreate(HWND hwnd);
	virtual void    NcDestroy();
	virtual void    PreDestroy();


Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to try classes inside TCtrlLib?
Goto Forum:
  


Current Time: Sat Apr 20 06:12:33 CEST 2024

Total time taken to generate the page: 0.04795 seconds