Skip to main content
Stack Overflow
  1. About
  2. For Teams
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

Standard way to normalize mouse wheel input across devices and platforms?

If I want consistent scrolling behavior across platforms and different wheel resolutions, I need a way to make wheel input independent of the device’s physical precision. Different mice seem to have ...
0 votes
0 answers
77 views

How to turn off Display on Windows, Without affecting GUI apps running

I am running a GUI app on windows device. The main thread for this is the UI thread. Im adding a functionality to turn off the display when the application is not being used for certain time. I tried ...
0 votes
0 answers
48 views

Flickering when drawing to IDCompositionSurface

I tried drawing a rounded rectangle via the renderTarget, but encountered an issue where the image disappears every other frame—what could be the cause? #include <d2d1_1.h> #include <d2d1_2.h&...
0 votes
0 answers
71 views

Shell_NotifyIcon(NIM_MODIFY, NIF_INFO) returns TRUE but no balloon/notification is shown (tray icon)

I'm implementing a tray icon for my game launcher on Windows (C++, Win32 API). The tray icon itself works fine: it appears in the system tray, I can right-click it to show a context menu, and double-...
-1 votes
0 answers
86 views

ProcessID from ETW always return 0xFFFFFFFF

I am using Event Tracing for Windows to monitor disk io and network usage of processes. I have used ETW with KERNEL_LOGGER_NAME , EVENT_TRACE_FLAG_PROCESS , EVENT_TRACE_FLAG_DISK_IO, ...
-4 votes
0 answers
132 views

Display directly on screen. Work on Windows 10 not on Windows 11

A few years ago I wrote a WPF program which displays Google Agenda items (with some transparency) directly on the screen of Windows desktop. This program works perfectly under Windows 10, by calling ...
0 votes
0 answers
124 views

C++ Unicode Problems/Questions

I wrote two versions of a little program in C++ with MSVC on Windows 11: First one: #include <iostream> #include <Windows.h> int main() { SetConsoleOutputCP(CP_UTF8); std::cout &...
0 votes
0 answers
48 views

wrong transformes for model loaded with assimp in opengl

Im trying to apply the model's transforms by walking the node heirarchy, but the poses are wrong (im not trying to animate it, just load it in a pose by using the transforms given in the gtlf file) ...
1 vote
1 answer
126 views

Confine mouse cursor within one monitor

I am writing a Windows GUI application which uses many monitors, but all mouse controls are on the first monitor (and it is the system monitor, too). It is rather troublesome when the cursor moves ...
Yurii's user avatar
  • 31
-7 votes
1 answer
116 views

Error while trying to get current active window [closed]

I'm trying to get the active process (no admin privileges needed I think) and both hwnd and pID aren't NULL and the issue seems to be at this line: if (GetModuleBaseNameA(Handle, NULL, processName, ...
0 votes
0 answers
45 views

Capture Device Disconnects From Custom CTransInPlaceFilter When Connecting To Renderer in GraphEdit/DirectShow

I've created a custom DirectShow CTransInPlace filter meant to replicate the SampleGrabber filter and related interfaces with support for VIDEOINFOHEADER2 called SampleGrabber2. I currently have the ...
-4 votes
1 answer
121 views

Is it possible that lParam on WM_MOUSEMOVE contains mouse coordinates outside of the client area on occasion?

I have a WinAPI (Win 10) C++ application that uses a Windows window capturing the WM_MOUSEMOVE event. I noticed that on rare occasions, the mouse coordinates are slightly outside the client area — for ...
user18490's user avatar
  • 3,904
-1 votes
1 answer
49 views

COM CCertRequest via CSWin32

I'm currently using a COM component to initialize an instance of CCertRequest from CertCliLib. I would like to move to CSWin32 with that, but it seems the CCertRequest does not implement any ...
2 votes
0 answers
112 views

How to capture when to refresh a ListView displaying a list of files after possibly multiple FindNextChangeNotification events?

I need to figure out the condition when I'm ready to display the final file list in a ListView after a series of FindNextChangeNotification events. If there are multiple events coming in quick ...
gene b.'s user avatar
  • 12.6k
3 votes
1 answer
212 views

Encounter a problem that print wide_character in C

Here is my code: #include "snake.h" void SetPos(short x, short y) { //获得标准输出设备的句柄 HANDLE houtput = NULL; houtput = GetStdHandle(STD_OUTPUT_HANDLE); //定位光标的位置 COORD pos =...

15 30 50 per page
1
2 3 4 5
...
2916

AltStyle によって変換されたページ (->オリジナル) /