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 handle child windows
Re: How to handle child windows [message #9700 is a reply to message #9699] Fri, 25 May 2007 14:09 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
michael wrote on Fri, 25 May 2007 05:58

Ok, that works.

But how can i use GetRect to get only the position, not the size?

I only want to get the x-pos, the y-pos of the topwindow and set it on the childwindow with SetRect(x-pos, y-pos, 300, 400);

GetRect delivers the complete Position and Size of the topwindow, how can i split these information?

Michael


E.g.

Rect r;

Point p(r.left, r.top);
Point p = r.TopLeft();
Size sz = r.GetSize();


etc...

Note: Press Ctrl+Q and type there "Rect". Or go to Rect id in sources and press Alt+J. (Parser is not perfect yet, but usually it works...)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to delete all widgets on a TopWindow?
Next Topic: How to call class1 member after closing class2
Goto Forum:
  


Current Time: Tue Jun 11 09:38:37 CEST 2024

Total time taken to generate the page: 0.01985 seconds