about client area and non-client area

milson 2000-09-26 03:23:00
窗口都有客户区和非客户区,那么客户区和非客户区的大小是系统固定的还是用户可调的,如果可调,是不是在WM_NCCALCSIZE中处理,如何处理?欢迎大家讨论。
...全文
115 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
Areslee 2000-09-26
  • 打赏
  • 举报
回复
GetWindowRect()取得的是整个窗口的尺寸,GetClientRect()得到的是窗口客户区的尺寸。
milson 2000-09-26
  • 打赏
  • 举报
回复
我想要的结果是,在我做了某些改变后,我使用GetWindowRect() GetClientRect()得到
的值就是我所改变后的值,这样可以吗?
另有谁能够详细解释一下NCCALCSIZE_PARAMS这个结构。
NiceFeather 2000-09-26
  • 打赏
  • 举报
回复
在WM_NCCALCSIZE和WM_NCPAINT中处理!重绘它!
Areslee 2000-09-26
  • 打赏
  • 举报
回复
非客户区就是指窗口标题栏、菜单、边框等等。而我们通常在WM_PAINT消息里处理的区域则是客户区,客户区的大小可以随便改变,非客户区也会随着客户区的变动而相应地改变。
milson 2000-09-26
  • 打赏
  • 举报
回复
hurry up!
What's New in 13.2.5 (VCL Product Line) New Major Features in 13.2 What's New in VCL Products 13.2 Feature Highlights To learn about feature highlights in this version, please refer to the following page: Feature Highlights in 13.2.5 (VCL Product Line) Known Issues To learn about known issues in this version, please refer to the following page: Known Issues in 13.2.5 (VCL Product Line) The following sections list all minor and major changes in DevExpress VCL 13.2.5. Note that products, controls and libraries which aren't mentioned in the list below are included in the unified installer for compatibility, but have not been updated. Enhancements and Updates •New Features/Updates •ExpressVerticalGrid Suite •ExpressEditors Library •Resolved Issues •ExpressBars Suite •ExpressDocking Library •ExpressLayout Control •ExpressPageControl •ExpressPrinting System •ExpressQuantumGrid Suite •ExpressQuantumTreeList Suite •ExpressScheduler Suite •ExpressSkins Library •ExpressTile Control •ExpressVerticalGrid Suite •ExpressWizard Control •ExpressEditors Library •ExpressLibrary •Installation (VCL) New Features/Updates ExpressVerticalGrid Suite •S173543 - Introduce a property providing access to the FNewLoadMode field declared in the TcxCustomVerticalGrid class Common Libraries ExpressEditors Library •S173677 - Documentation - Add a note that resizing an alert window via the standard window size API (properties or methods inherited from TdxAlertWindow ancestor classes) is not recommended Resolved Issues ExpressBars Suite •Q584524 - Ribbon - QAT doesn't display the double arrow if the Ribbon control's PopupMenuItems set does not include items •Q581962 - Ribbon - Switching between maximized MDI child windows using the Ctrl+F6 key combination doesn't make them occupy the entire main window if Ribbon controls on these windows are merged •Q468576 - Switching a floating toolbar's Visible property to True in the BarManager's OnMerge event handler does not show this toolbar

16,548

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • AIGC Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧