How to get the second active window in z order? [closed] - c++

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I am trying to create an MFC application(hidden application) for tracking usage of other applications.
I am using GetForgroundWindow() for getting the current active window but sometimes I get my own hidden application window.
How I can get the current active windows in z-order

Call GetWindow passing GW_HWNDNEXT.

Related

How to add a custom button in mac catalyst optimised for mac using swiftUI? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 days ago.
Improve this question
When I try to change it to optimised for mac, I see all buttons change to default style (I mean macOS style). I just want to change the button style. Pls help!

C++ - Move application out of screen [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So I want to create a c++ application that would come out from out of the screen when a button (that is visible on screen) is clicked and then the opposite.
How can I achieve this?
edit: i'm planning to do this on windows (winapi)
You should be able to use ::MoveWindow (or ::SetWindowPos) to change the position of the main window on a timer (WM_TIMER) callback.

Programmatically get active connections in windows [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I would like to get all active connections (similar to TCPView from sysinternals) on a windows machine, using WinAPI.
How can I do this using Winsock ?
Winsock does not provide any functionality to get a list of active connections.
The GetTcpTable(), GetTcpTable2(), GetTcp6Table, and GetTcp6Table2() functions of the IP Helper API provide the information that you are looking for.

is there any function in wxwidgets to check pdf software is available or not [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am using wxwidgets 2.8.10 with c++ and I am using both windows xp and windows 7.
Is there any function to see if "pdf" software is available in my computer or not by using wxwidgets?
Presumably you want to know whether a PDF viewer is available in order to open a PDF document. And if this is the case, you should just try opening it and then handle the error.

Get coordinates of two mouses separately in C++ [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm having two mouses on my PC, and now I want to get their positions at the same time. Can I do this through programming?
Thanks!
In Windows you cant, because you can only get the Position of the Cursor which is controlled by every mice.
On Linux, it's definitely possible to control one cursor with two devices. For instance I have a touchscreen and a mouse, the most recent one to be used moves the cursor.
This Question talks about a package which allows 2 cursors on Ubuntu.