会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一叶扁舟
2019.08.23 慢慢积累,总会变强大的 2024.07.09 温故而知新 可以为师矣
博客园
首页
新随笔
联系
管理
上一页
1
···
25
26
27
28
29
30
31
32
33
···
39
下一页
2020年6月9日
win32-UpdateLayeredWindow
摘要: 创建半透明的窗口,以及在窗口上绘制不透明的文本 方法: 创建Bitmap具有PixelFormat32bppPARGB像素格式的GDI + 对象。 创建一个Graphics对象以绘制该Bitmap对象。 使用GDI +将所有图形绘制到该对象中。 销毁Graphics在步骤2中创建的对象。 GetHB
阅读全文
posted @ 2020-06-09 15:37 strive-sun
阅读(1766)
评论(0)
推荐(0)
2020年6月3日
win32-CreateDIBSection的使用
摘要: 使用CreateDIBSection 可以创建一个设备无关位图 #include <windows.h> using namespace std; int main() { HDC hdc = GetDC(HWND_DESKTOP); HDC MemDC = CreateCompatibleDC(h
阅读全文
posted @ 2020-06-03 15:46 strive-sun
阅读(1185)
评论(0)
推荐(0)
win32-StretchDIBits - PrintDlg
摘要: 使用StretchDIBits将位图数据传输到printer的dc中 #include <Windows.h> #include <algorithm> int main() { int nWidth = 16, nHeight = 16; BYTE byteBitmap[768]; std::fi
阅读全文
posted @ 2020-06-03 14:52 strive-sun
阅读(466)
评论(0)
推荐(0)
2020年5月28日
C#-SendKeys方法的使用
摘要: 模拟键盘CTRL+S 的输入 using System; using System.Collections.Generic; using System.Diagnostics; using System.ComponentModel; using System.Runtime.InteropServ
阅读全文
posted @ 2020-05-28 13:51 strive-sun
阅读(840)
评论(0)
推荐(0)
2020年5月26日
python-鼠标宏
摘要: 按下鼠标左键, 连击 按下鼠标右键, 停止 import win32api import time from pynput.mouse import Button, Controller mouse = Controller() while True: if (win32api.GetAsyncKe
阅读全文
posted @ 2020-05-26 17:47 strive-sun
阅读(1343)
评论(0)
推荐(0)
win32- 窗口模板
摘要: 主要用于日常的win32窗口的测试 #include <Windows.h> #include <stdio.h> #include <iostream> using namespace std; LRESULT CALLBACK WndProc(HWND hwnd, UINT message, W
阅读全文
posted @ 2020-05-26 10:30 strive-sun
阅读(259)
评论(0)
推荐(0)
2020年5月21日
win32- GetMessage的使用
摘要: BOOL bRet; while( (bRet = GetMessage( &msg, hWnd, 0, 0 )) != 0) { if (bRet == -1) { // handle the error and possibly exit } else { TranslateMessage(&m
阅读全文
posted @ 2020-05-21 17:23 strive-sun
阅读(691)
评论(0)
推荐(0)
2020年5月20日
win32- 使用WM_NCPAINT在非客户区域绘制边框
摘要: #pragma comment(lib, "UxTheme") #include <windows.h> #include <uxtheme.h> LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); int WINAPI WinMain(HIN
阅读全文
posted @ 2020-05-20 14:27 strive-sun
阅读(2318)
评论(0)
推荐(0)
2020年5月15日
win32-UI Automation
摘要: 使用UI Automation遍历窗口的所有控件标题和类 #include <Windows.h> #include <stdio.h> #include <UIAutomation.h> IUIAutomation* pClientUIA; IUIAutomationElement* pRootE
阅读全文
posted @ 2020-05-15 17:01 strive-sun
阅读(1436)
评论(0)
推荐(0)
win32-WH_KEYBOARD的使用
摘要: 我们使用WH_KEYBOARD来禁用记事本的ALT的按键 .cpp #include <Windows.h> #include <stdio.h> #include <tchar.h> unsigned long GetTargetThreadIdFromWindow(const char* cla
阅读全文
posted @ 2020-05-15 10:13 strive-sun
阅读(811)
评论(0)
推荐(0)
上一页
1
···
25
26
27
28
29
30
31
32
33
···
39
下一页
公告