Какой API Windows использовать для выбора области рабочего стола путем перетаскивания мышью? [закрыто]C++

Программы на C++. Форум разработчиков
Ответить
Anonymous
 Какой API Windows использовать для выбора области рабочего стола путем перетаскивания мышью? [закрыто]

Сообщение Anonymous »


I'm working on a native Windows app to stream part of my desktop to a microcontroller as part of a creative tech project. It's written using C++ and is curently a console app. I have no intention of switching to Javascript, C# or anything else.

The streaming part is working, but I'm currently defining the area to capture using a console command (x,y,width,height), which is far from intuitive. I'd like to be able to drag a rectangular area across the desktop, which could include other windows from other apps, (constrained to an aspect ratio), and then drag that rectangle itself to fine-tune the position.

I would appreciate any pointers on the C/C++ API I chould use for this. I'm only interested in Windows 10/11, and C or C++, as it's for a one-off project that will only be on this platform.

Currently the output is streaming ok. I have not yet tried anything serious to add a GUI area capture tool. The app is currently a console app, so the solution would be to allow the mouse drag and reposition after the app is launched from a console window.


Источник: https://stackoverflow.com/questions/780 ... with-mouse
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C++»