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 » U++ Widgets - General questions or Mixed problems » Window move virtual function
Re: Window move virtual function [message #28468 is a reply to message #28464] Thu, 02 September 2010 18:09 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3362
Registered: August 2008
Senior Veteran
Hello

Finally it works in Windows.

The trick has been this:

void SDLCtrl::State(int reason) {
	switch(reason) {
	case OPEN:
		{
			GuiLock __;
			CloseHWND();
			HWND phwnd = GetTopCtrl()->GetHWND();
			if(phwnd) {
				hwnd = hwndSDL;
				SetParent(hwndSDL, phwnd);
			}
		}
		break;
	default:
		DHCtrl::State(reason);
	}
}


index.php?t=getfile&id=2783&private=0

The only problem is that it is necessary to change DHCtrl, as hwnd and CloseHWND() have to be "protected:" instead of "private:".

Mirek, Daniel, Massimo, other, what do you think about this?
  • Attachment: dib.PNG
    (Size: 47.97KB, Downloaded 631 times)


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GLCtrl questions
Next Topic: ColumnList - Set(Value key, Value val) - Working right?
Goto Forum:
  


Current Time: Sat May 18 10:19:34 CEST 2024

Total time taken to generate the page: 0.01847 seconds