问题标签 [user32]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
85 浏览

c# - Is there any way to "bind" to window data for all open windows?

I've written some interop code that utilizes user32.dll to enumerate the windows and add them to a List. WindowData is a local INotifyPropertyChanged class that stores window hWnd, title, Position, Size, executable path, app icon, etc.

Is there a way that I could effectively "bind" to changes of the window title, position, size, etc? I wouldn't want to have to use a DispatcherTimer to update the information every second. I'd prefer it if I could use a simple event handler or callback or something.

Anyone have any ideas?

0 投票
1 回答
470 浏览

c# - 最好远离另一个进程动画窗口的位置,正弦缓动?

我需要为其他进程的窗口位置设置动画。有什么方法可以通过使用 Sine、Quad、Quart 甚至 Back 缓动的平滑动画来实现这一点?

0 投票
1 回答
681 浏览

user32 - GetAsyncKeyState 和一些问题?

为什么我在使用 GetAsyncKeyState 时一次按下会获得 1 个(几百个)以上的按键。当我按下一次时,它会打印一百个相同的键。谢谢,

0 投票
2 回答
11242 浏览

c# - 使用 C# 中的 SystemParametersInfo (SPI_GETSCREENREADER SPI_SETSCREENREADER)

我这样做正确吗?

0 投票
2 回答
1300 浏览

vb6 - VB6:在第 3 方控件中获取子控件的 hWnd

我有一个 vb6 第三方 UpDown 控件(让它成为 ControlX),使用 UISpy 我可以看到 ControlX 内部有 2 个控件,一个是“ThunderRT6TextBox”,另一个是“UpDown20WndClass”。

我在 ControlX 周围画了一个边框。我正在使用 ControlX hWnd,我像这样绘制边框:

问题是边框是围绕 ThunderRT6TextBox 而不是 UpDown20WndClass 绘制的(可能 ControlX hWnd 返回它的内部 ThunderRT6TextBox 控件 hwnd)。

我想获取 ControlX 的内部 UpDown20WndClass 控件 hWnd,以在其周围绘制边框。

我怎样才能做到这一点?

提前致谢。

0 投票
3 回答
4499 浏览

c# - C# 在 Windows 7 中隐藏任务栏

我试图在 C# 中隐藏 Windows 7 任务栏。我查看了这篇文章和这个页面,但在按照所有说明操作后,我最终在底部看到了一个纯黑条。我最终得到了一个这样的任务栏类:

我已经截取了问题的屏幕截图:

先感谢您。

0 投票
2 回答
2576 浏览

windows - 检测 Windows 登录屏幕是否对 VB.NET 中的用户可见

嘿 StackOverflow VB.NET 成员,

运行以下代码(锁定计算机)后,我必须应用什么代码才能查看用户是否已成功登录计算机并且我所谓的“锁定屏幕”消失了?

我将调用“LockComputer”,然后我该怎么做才能查看此功能调用的锁定屏幕(例如 2 分钟后)是否已消失或仍然存在要求用户输入密码!

谢谢,阿克希特·索塔

0 投票
2 回答
920 浏览

vb.net - 在 VB.NET 中制作一个我可以用作 DllImport 的 DLL

我可以在 VB.NET 中创建一个可以在 VB.NET 中使用的带有 DllImport 标签的 DLL,就像我们从“user32.dll”导入函数一样?

0 投票
2 回答
1059 浏览

vb.net - 无法隐藏进程

我想启动 calc.exe 并隐藏它,
但只能启动 exex 但无法隐藏
代码中的错误?

0 投票
1 回答
152 浏览

vb.net - 无法获得进程名称(vb.net)

我想创建一个可以获取应用程序名称的程序
我可以启动程序但无法获取程序名称

它显示 ID 为 1796 的进程未运行,但程序已打开