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 » TopWindow&PopUp, TrayIcon » How to get and set window placement information?
Re: How to get and set window placement information? [message #14660 is a reply to message #14659] Thu, 06 March 2008 14:42 Go to previous message
Tom1
Messages: 1303
Registered: March 2007
Ultimate Contributor
Thanks, James! I only added another && !IsFullScreen() to the Layout() function to take care of that scenario too. Now it should work all the way. However, I would like to see the following additions made to the TopWindow class, but I guess it's up to Mirek to decide, right?

Anyway:

private:
Rect normalrect;

public:
Rect &GetNormalWindowRect(){ return normalrect; }

void SetNormalWindowRect(Rect &rect){ 
	normalrect=rect; 
	if (!IsMaximized() && !IsMinimized() && !IsFullScreen() && IsShown()) SetRect(rect);
}

virtual void Layout(){ 
	// or where ever the following belongs so that it 
	// gets properly executed even when the virtual Layout() 
	// function gets overridden in an inherited class
	...
	if (!IsMaximized() && !IsMinimized() && !IsFullScreen() && IsShown()) normalrect = GetRect();
	...
}


// Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Toggling between FullScreen and not
Next Topic: Transparent TopWindow
Goto Forum:
  


Current Time: Sat Jun 14 17:23:53 CEST 2025

Total time taken to generate the page: 0.04372 seconds