window-position

How can I programmatically determine the size of my desktop?

I'm trying to save / restore the window size, state and position of a System::Windows::Forms::Form and want to make sure that if the window was previously on another monitor and the app is started up when only a snogle monitor is available, that it puts itself somewhere on-screen. So how can I determine the current desktop size and whet...

Get size of another application to place window scaled properly above it

Background: I work a lot with pdf's that are heavy in graphics. In fact, they are graphical representations of code. Sometimes I want to compare versions of the code, usually it's done by opening two pdf readers and swap between windows or put them next to each other. I got tired of that so I whipped up a simple app to contain a clipp...

Restore previous window position on buffer switch in Emacs

I split windows to view two different parts of the selected buffer simultaneously. If I switch to another buffer in one of the windows and then switch back to the original buffer, I'll lose the previous window position---I'll see the same parts of the selected buffer in both windows. How can I restore window positions amongst buffer swit...