U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » TopWindow&PopUp, TrayIcon » How can I retrieve the current screen resolution?
How can I retrieve the current screen resolution? [message #5195] Sun, 10 September 2006 11:18 Go to previous message
Werner is currently offline  Werner
Messages: 234
Registered: May 2006
Location: Cologne / Germany
Experienced Member
Again I'm frantically browsing the documentation ... Confused Mad

I need to retrieve the current screen resolution.

I found "static Rect GetDefaultWindowRect();" but that's not exactly what I'm looking for. I don't want to use the "OS suggested rectangle of newly open window" but the *maximal* rectangle of a newly to open window.

I found

static bool ClickFocus()
Returns OS specific working area - this is rectangle in screen coordinates
where application windows can be placed.
Return value	Work area rectangle.


but that leaves me puzzled:

1.
The name is strongly misguiding. I found this function by pure chance.

2.
I'm unable to comprehend this function. How can a boolean value return the (size of the) work area rectangle?

OK! I'm sure that there does exist a simple function, e.g. "Size ScreenSize();", which returns the dimension of the current screen - 1280 * 1024 for example. Rolling Eyes

Where is it and how is it named? Shocked

Werner
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Implementation of TrayIcon for linux
Next Topic: these nice bubbles...
Goto Forum:
  


Current Time: Tue Apr 28 19:06:13 GMT+2 2026

Total time taken to generate the page: 0.00570 seconds