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 #9698 is a reply to message #9695] Fri, 25 May 2007 11:02 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14255
Registered: November 2005
Ultimate Member
michael wrote on Fri, 25 May 2007 03:33

Is there a way to get the topwindow position and then place a new window relative to the main topwindow, like this?

SetRect(mainWndX + 10, mainWndY + 10, 300, 300);

Michael


Yes, GetRect(). For this purpose, top-level windows are considered "desktop children".

One thing you need to know, however: TopLevel window positions are positions without "decorations" provided by host-os, means window caption and thick frame are "outside" this position.
 
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: Sun Apr 27 19:46:45 CEST 2025

Total time taken to generate the page: 0.00637 seconds