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 top and left position of top window
Re: How to get top and left position of top window [message #31873 is a reply to message #31868] Sun, 03 April 2011 17:10 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

nlneilson wrote on Fri, 01 April 2011 22:57

When debugging a watch set for "rect" gets this but I am not able to set a variable with this.

Same with Top and Left.

Get errors they are private/protected or whatever.

When a user moves the window to his preferred position I would like to save this to a config file.

Neil

Hi Neil,

Do you mean GetRect()? Smile

Also, if you are interested in storing window placement, you might want to look at TopWindow::SerializePlacement(Stream& s,bool reminimize). It is aimed to binary serialization, but even if you use some other form (cfg file, XML,...) it should give you some inspiration.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Windows that cant leave Mainwindow
Next Topic: Restoring TrayIcon control
Goto Forum:
  


Current Time: Sat Jun 07 21:27:46 CEST 2025

Total time taken to generate the page: 0.24684 seconds