news 2026/1/8 4:08:39

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

作者头像

张小明

前端开发工程师

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/1/7 8:43:31

谷歌镜像站同步更新:Qwen-Image全球加速访问

Qwen-Image 全球加速落地&#xff1a;当顶级文生图模型遇上谷歌镜像网络 在数字内容创作的浪潮中&#xff0c;一个设计师可能正坐在新加坡的咖啡馆里&#xff0c;用中文写下“赛博朋克风格的城市夜景&#xff0c;霓虹灯闪烁&#xff0c;雨夜街道倒映着全息广告”——不到十秒&a…

作者头像 李华
网站建设 2026/1/6 17:53:02

使用Docker Compose快速部署FLUX.1-dev镜像的5个步骤

使用Docker Compose快速部署FLUX.1-dev镜像的5个步骤 在AI生成内容&#xff08;AIGC&#xff09;爆发式增长的今天&#xff0c;文生图模型已成为创意设计、广告营销和教育可视化的核心工具。然而&#xff0c;从Stable Diffusion到Midjourney&#xff0c;大多数先进模型要么依赖…

作者头像 李华
网站建设 2026/1/8 14:08:05

腾讯混元HunyuanVideo-Foley模型上线GitHub,开启音画同步新纪元

腾讯混元HunyuanVideo-Foley模型上线GitHub&#xff0c;开启音画同步新纪元 在短视频日均播放量突破数百亿次的今天&#xff0c;一个常被忽视却至关重要的问题浮出水面&#xff1a;大多数UGC内容依然“沉默”。即便画面精彩纷呈&#xff0c;缺乏匹配的环境音与动作反馈&#xf…

作者头像 李华
网站建设 2026/1/1 4:16:34

npm publish发布基于Qwen-Image的封装库到公共仓库

npm publish发布基于Qwen-Image的封装库到公共仓库 在内容创作工具日益智能化的今天&#xff0c;开发者越来越需要一种轻量、高效的方式来集成前沿AI能力。尤其是在Web应用中动态生成高质量图像的需求不断增长——比如广告系统自动生成宣传图、设计平台辅助创意构思、教育产品渲…

作者头像 李华
网站建设 2026/1/5 22:40:13

冥想第一千七百三十二天(1732)

1.今天周六&#xff0c;然后今天下午跑了步上午上午就在家歇着要不没有写上午&#xff0c;然后拖了拖地&#xff0c;然后帮鞋子给孩子刷了鞋子做了做家务非常忙也特别充实 2.感谢父母&#xff0c;感谢朋友&#xff0c;感谢家人&#xff0c;感谢不断进步的自己。

作者头像 李华
网站建设 2026/1/1 22:05:43

冥想第一千七百三十三天(1733)

1.今天开车去丈母娘家天气非常好&#xff0c;路上的积雪也都化了昨天路上积雪没有化&#xff0c;所以说没有去&#xff0c;然后之后的话又去大为中午1吃了饭去了一家清真的饭店吃的特别好&#xff0c;然后下午实在太困了&#xff0c;在车上睡了差不多40分钟吧&#xff0c;然后又…

作者头像 李华