Forum > Win32/64

Show portion of several opened windows in a single window


Hi, newbie here.
I need to code a small program (let's call it dashboard) that shows rectangular portions of several opened windows, in a single window. It will run on Windows 10. The idea is to open one single application (not done by me) several times (many, like 30) in a Windows 10 desktop (workspace) and then my app would run in another desktop (same computer, same windows 10), showing in a single window, all the 30 rectangular portions of the 30 opened windows, in a matrix like format, say 6 x 5.
I need help on that. Would any kind soul show me the way ?
And yes, the those portions of each window are updated regularly and my dashboard app also needs to reflect the update.
Thank you very much.


--- Quote from: Marco343 on March 23, 2019, 09:50:18 pm ---I need help on that. Would any kind soul show me the way ?

--- End quote ---
Find the needed apps first (through EnumDesktopWindows), copy the contents of these windows (using GetDC, BitBlt) to some bitmaps. Show bitmaps by the DrawGrid. Update bitmaps by timer.

It worked.
- Start the external application with TProcess.Execute;
- Find the main window associated to the process with GetWindowThreadProcessId;
- Take screenshots with PrintWindow;
- Transfer a portion of the screenshots to the related TImage in the form with StretchBlt;
- Update the shots based on TTimer;

A lot of polishing still to go.


[0] Message Index

Go to full version