Comments (1)
第一个问题,在应用中,窗口的最大化最小化按钮功能已经属于业务层面,在展示的示例中并没有做特别详细的示例,是希望使用者能快速理解代码执行效果。无论点击还原按钮还是拖动窗口非客户区都会得到 OnSize 变化,使用者可通过重写基类 OnSize 方法判断当前是否全屏(IsZoomed)从而显示不同的按钮状态。如下示例代码:
LRESULT BasicForm::OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
if (m_pRoot)
{
FindControl(L"maxbtn")->SetVisible(!::IsZoomed(m_hWnd));
FindControl(L"restorebtn")->SetVisible(::IsZoomed(m_hWnd));
}
return __super::OnSize(uMsg, wParam, lParam, bHandled);
}
第二个问题这个应该是 Windows 的默认行为,比如在 WIN+R 运行的输入框中输入文字,鼠标指针会自动隐藏,如果您觉得这种行为并不可靠,欢迎提交 PR 来完善该功能。
from nim_duilib_framework.
Related Issues (20)
- 能否提供一个模态对话框的例子
- ui 图标在一些高分辨率机器上 边缘锯齿严重
- list怎么去掉了 header
- 如何在richedit中添加图片等?
- mini_blink加载的页面不响应鼠标点击
- TabBox::Remove问题
- GetDpiImageFullPath函数有泄漏 HOT 2
- 能否支持运行期间响应DPI变化
- master分支能否支持克隆下来能直接使用vs2022编译通过的 HOT 4
- 想用该框架来做音视频通话,请问是否合适?可以给一些思路和建议吗?感谢 HOT 2
- OptionBox设置selected属性后无效 而且程序运行崩溃
- 自定义控件绘制本地摄像头数据没有颜色 HOT 1
- duiLib有什么交流群吗?这个项目目前还在维护吗?
- 缺少cefwrapper的lib库
- ui::GlobalManager::CreateBoxWithCache返回null;
- 插件模块的开发
- shadowattached=“false“ 导致 RichEdit 透明穿透 到底怎么修复啊!还是不会! HOT 1
- develop版 怎么修改编码都编译不通过
- 把一个session_box单独出来放在session_form中后,任务栏缩略图空白 HOT 1
- bool ScrollableBox::IsAtEnd() 在特定情况下返回值不准的问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nim_duilib_framework.