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 » How to center the top most window?
Re: How to center the top most window? [message #30005 is a reply to message #30004] Thu, 02 December 2010 15:42 Go to previous messageGo to previous message
unknown user
JoseB wrote on Thu, 02 December 2010 15:32

in constructor I made this:

Rect r=GetRect();
SetRect(0, 0, r.right - r.left, r.bottom - r.top);

and the window is shown in the 0,0 coordinates. I want to center it in the screen

JoseB

CenterScreen(); after SetRect(..) would do that.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NEW: LogPosCtrl, for editing LogPos of a Ctrl
Next Topic: Push button by keystroke (without ALT)
Goto Forum:
  


Current Time: Wed Jun 12 04:46:07 CEST 2024

Total time taken to generate the page: 0.02129 seconds