news 2026/5/1 23:30:34

幽冥大陆(五十一)屏幕录像电子教学粉笔工具栏顶置——东方仙盟炼气期

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
幽冥大陆(五十一)屏幕录像电子教学粉笔工具栏顶置——东方仙盟炼气期

工具栏顶置

在电子教学的屏幕录制领域,屏幕录制仿若东方仙盟的灵镜,将知识的乾坤万象清晰映照。而其中的粉笔标记,恰似仙盟高手以灵力勾勒的神秘符文,醒目且关键,能瞬间聚焦重点,引导学生目光如灵蝶追香,精准落在知识的花蕊上。

至于工具栏,它宛如仙盟宝库的机关枢纽,蕴藏着众多如法宝般的实用工具。画笔如灵笔可绘天地妙象,橡皮擦似清尘仙力能修正谬误。但为何工具栏要置顶呢?这是因为在东方仙盟的诸多奇珍异宝中,最为关键的法宝总是被供奉在最显眼、最易触及之处,以便在关键时刻能迅速取用。同样,将工具栏置顶,就如同将这些知识传承的 “仙盟法宝” 置于触手可及的高位,教师在教学过程中能如仙者自如施展法术般,毫无阻滞地按需取用。无论是需要突出重点时挥动画笔,还是修正讲解失误时运用橡皮擦,置顶的工具栏都能让教师在知识的广袤仙域中自由驰骋,不会因寻找工具而打乱教学节奏,从而为学生雕琢出一条顺畅的求知仙途,让知识的传承与启迪如仙盟的光辉,熠熠生辉,照亮学子的漫漫求学之路

防阻塞切换

工具栏UI

<Window x:Class="Captura.CyberWin_Main.CyberWin_FloatingToolbarWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:viewModels="clr-namespace:Captura.ViewModels" Title="未来之窗教学录制工具Floating Toolbar" Height="Auto" Width="50" WindowStyle="None" AllowsTransparency="True" Background="#90e50000" Topmost="True" ShowInTaskbar="False" ResizeMode="NoResize"> <Window.Resources> <!-- 按钮样式 --> <Style TargetType="Button" x:Key="FloatingButtonStyle"> <Setter Property="Width" Value="30" /> <Setter Property="Height" Value="50" /> <Setter Property="Margin" Value="5" /> <Setter Property="Background" Value="Transparent" /> <Setter Property="BorderBrush" Value="Transparent" /> <Setter Property="Foreground" Value="White" /> <Setter Property="Cursor" Value="Hand" /> <Setter Property="materialDesign:ButtonAssist.CornerRadius" Value="10" /> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="#50FFFFFF" /> </Trigger> <Trigger Property="IsPressed" Value="True"> <Setter Property="Background" Value="#80FFFFFF" /> </Trigger> </Style.Triggers> </Style> </Window.Resources> <!-- 主容器,支持拖拽 --> <Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown" HorizontalAlignment="Center" Background="Transparent"> <!-- 垂直排列的按钮 --> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5"> <Label Foreground="#FFFFFF" FontSize="14" Width="30">电子</Label> <Label Foreground="#FFFFFF" FontSize="14" Width="30" >教学</Label> <!-- 录制控制 --> <Button Command="{Binding StartRecordingCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="开始录制"> <materialDesign:PackIcon Kind="Play" Width="25" Height="25" /> </Button> <Button Command="{Binding PauseRecordingCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="暂停录制"> <materialDesign:PackIcon Kind="Pause" Width="25" Height="25" /> </Button> <!-- <Button Command="{Binding StopRecordingCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="停止录制"> <materialDesign:PackIcon Kind="Stop" Width="25" Height="25" /> </Button> --> <Separator Height="15" Visibility="Hidden" /> <!-- 工具控制 --> <Button Command="{Binding ToggleMagnifierCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="放大镜"> <materialDesign:PackIcon Kind="Magnify" Width="25" Height="25" /> </Button> <Button Command="{Binding TogglePencilTechCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="讲课粉笔模式,通过快捷键切换"> <materialDesign:PackIcon Kind="Pencil" Width="25" Height="25" /> </Button> <Button Command="{Binding ToggleCursorCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="光标模式,通过快捷键切换"> <materialDesign:PackIcon Kind="CursorPointer" Width="25" Height="25" /> </Button> <Button Command="{Binding TogglePencilPaletteCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="画笔-颜色"> <!-- 推荐使用调色板图标 --> <materialDesign:PackIcon Kind="Palette" Width="25" Height="25" /> </Button> </StackPanel> </Grid> </Window>

操作系统级别函数

public static CyberWin_FloatingToolbarWindow _instance; //2025-12-15 // Windows API 常量(用于设置顶层窗口) private const int HWND_TOPMOST = -1; private const uint SWP_NOSIZE = 0x0001; private const uint SWP_NOMOVE = 0x0002; private const uint SWP_NOACTIVATE = 0x0010; // 不激活窗口,关键:避免抢占焦点 // Windows API 声明(设置窗口位置和层级) [DllImport("user32.dll")] private static extern bool SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags); // Windows API 声明(设置窗口扩展样式,禁用焦点) [DllImport("user32.dll")] private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong); [DllImport("user32.dll")] private static extern int GetWindowLong(IntPtr hWnd, int nIndex); private const int GWL_EXSTYLE = -20; private const int WS_EX_NOACTIVATE = 0x08000000; // 窗口不接收激活焦点 private const int WS_EX_TOOLWINDOW = 0x00000080; // 工具窗口,不在任务栏显示(可选,增强体验)

修改软件标题

// 修改窗口标题的API [DllImport("user32.dll", CharSet = CharSet.Unicode, SetLastError = true)] private static extern bool SetWindowText(IntPtr hWnd, string lpString);

阿雪技术观


在科技发展浪潮中,我们不妨积极投身技术共享。不满足于做受益者,更要主动担当贡献者。无论是分享代码、撰写技术博客,还是参与开源项目维护改进,每一个微小举动都可能蕴含推动技术进步的巨大能量。东方仙盟是汇聚力量的天地,我们携手在此探索硅基生命,为科技进步添砖加瓦。

Hey folks, in this wild tech - driven world, why not dive headfirst into the whole tech - sharing scene? Don't just be the one reaping all the benefits; step up and be a contributor too. Whether you're tossing out your code snippets, hammering out some tech blogs, or getting your hands dirty with maintaining and sprucing up open - source projects, every little thing you do might just end up being a massive force that pushes tech forward. And guess what? The Eastern FairyAlliance is this awesome place where we all come together. We're gonna team up and explore the whole silicon - based life thing, and in the process, we'll be fueling the growth of technology.

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/4/30 22:45:54

requests.post vs 传统方法:效率对比实测

快速体验 打开 InsCode(快马)平台 https://www.inscode.net输入框内输入如下内容&#xff1a; 创建一个对比测试项目&#xff0c;分别使用&#xff1a;1. requests.post 2. urllib.request 3. http.client 实现相同的POST请求功能。要求&#xff1a;1. 统计各方法的代码行数 2…

作者头像 李华
网站建设 2026/4/30 22:45:53

企业级SSH端口管理实战:从-p参数到安全运维

快速体验 打开 InsCode(快马)平台 https://www.inscode.net输入框内输入如下内容&#xff1a; 开发一个企业SSH端口管理系统&#xff0c;功能包括&#xff1a;1. 批量扫描指定端口范围(-p)的SSH服务 2. 自动生成可视化拓扑图 3. 异常连接告警 4. 合规性检查报告。使用DeepSeek…

作者头像 李华
网站建设 2026/4/30 22:45:52

C#调用FLUX.1-dev模型API:Windows环境下AI集成实践

C#调用FLUX.1-dev模型API&#xff1a;Windows环境下AI集成实践 在当今智能应用快速演进的背景下&#xff0c;越来越多的企业希望将前沿AI能力无缝嵌入现有的业务系统中。尤其是图像生成技术——从一段文字自动生成高质量视觉内容的能力——正逐步被应用于设计辅助、营销素材制作…

作者头像 李华
网站建设 2026/4/30 22:45:57

vLLM推理加速镜像发布:支持LLaMA、Qwen、ChatGLM,吞吐提升10倍

vLLM推理加速镜像发布&#xff1a;支持LLaMA、Qwen、ChatGLM&#xff0c;吞吐提升10倍 在大模型落地如火如荼的今天&#xff0c;一个现实问题始终困扰着AI工程团队&#xff1a;如何让7B、13B甚至更大的语言模型&#xff0c;在有限的GPU资源下稳定支撑成百上千用户的并发请求&am…

作者头像 李华
网站建设 2026/4/30 22:46:03

GHelper终极指南:ROG笔记本性能优化与个性化控制完整教程

还在为华硕官方控制软件的卡顿和复杂操作而头疼吗&#xff1f;GHelper来拯救你的ROG笔记本了&#xff01;这款轻量级的开源工具专为华硕ROG系列笔记本设计&#xff0c;帮你轻松掌控硬件性能&#xff0c;释放游戏本的真正潜力。 【免费下载链接】g-helper Lightweight Armoury C…

作者头像 李华
网站建设 2026/4/30 22:45:58

火山引擎AI大模型对比测试:vLLM显著领先传统方案

火山引擎AI大模型对比测试&#xff1a;vLLM显著领先传统方案 在当前大模型应用快速落地的浪潮中&#xff0c;企业越来越关注一个现实问题&#xff1a;如何让 LLaMA、Qwen、ChatGLM 这类千亿级参数的模型&#xff0c;在有限的 GPU 资源下稳定支撑高并发请求&#xff1f;许多团队…

作者头像 李华