This question already has answers here:
How does Windows 7 show the thumbnails of application in taskbar?
(2 answers)
Closed 5 years ago.
Is there any Win32 API that provides the thumbnail to a specific application running on Windows? I notice Window captures these thumbnails when we hover the mouse over the taskbar but is this exposed to developers?
I'm coding in C++ and expect the API in C++.
These "thumbnails" are parts of Windows itself and cannot be modified.
Related
This question already has answers here:
How to change text or background color in a Windows console application
(3 answers)
Closed 2 years ago.
How can I color behind text in a Windows 10 console application? (you can look at the picture as an example)
Use WriteConsoleOutput, see this for details: https://learn.microsoft.com/en-us/windows/console/writeconsoleoutput
This question already has answers here:
Force Windows to show a system tray icon
(5 answers)
How to always show program tray icons in Windows by *default*?
(3 answers)
Set tray icon to always show
(5 answers)
Closed 2 years ago.
I have an issue with a software I wrote (Delphi) that is minimized to Windows 10 tray icon locations. There are two possible locations, one at the end of arrow #1 and another into arrow #2.
When a new application is installed, by default when minimized (and code written to take care of this), it goes to location #2 by default, and some user are confused and thinks the software has crashed (because this is hidden). My question is simple, is there a piece of code that forcefully put the minimized app icon into location #1 directly without any action from the user ?
C++ code is OK, or Delphi would be very nice.
This question already has answers here:
Can I run a Qt application with a specific theme?
(2 answers)
Closed 6 years ago.
Is there a way I can set the application theme from inside my application's own code?
For example, a function like that:
setApplicationTheme("Plastique");
You can use this function:
QStyle * QApplication::setStyle ( const QString & style );
Take a look at the Qt docs:
Qt 5
Qt 4.8
This question already has answers here:
Hide an MFC dialog window
(6 answers)
Closed 9 years ago.
I have an MFC C++ app, I need my app to run in background, to do run some functions.
So I want to disable the dialog window .In other words I am trying to hide/make it invisible to the user.
How could I do this ? I don't have much experience with MFC, I would really appreciate the help.
Bye.
You need to hide the mainframe using ShowWindow(SW_HIDE).
Refer ShowWindow.
This question already has answers here:
How to detect if keystroke was emulated by keybd_event or SendInput?
(2 answers)
Closed 9 months ago.
I'm developing an application which needs to count user keystrokes. It works fine however user can trick the app with SendInput() WINAPI function. Is it any way to differentiate between keystrokes made by real user and those sent via SendInput?
Set a hook with SetWindowsHookEx with the type WH_KEYBOARD_LL. Your callback can inspect the KBDLLHOOKSTRUCT::flags field. If it has the LLKHF_INJECTED flag set, then it's from SentInput or keybd_event. Otherwise, it's from the local keyboard driver.