炫彩界面库论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

查看: 3679|回复: 3

[提问-已解决] 炫彩窗口如何设置窗口样式!!!!

[复制链接]

该用户从未签到

发表于 2016-1-15 15:03:43 | 显示全部楼层 |阅读模式
20炫彩币
SetClassLongA (XWnd_GetHWND (全_主窗口句柄), -26, 位或 (GetClassLongA (XWnd_GetHWND (全_主窗口句柄), -26), 131072))

如上,用SetClassLongA 设置样式   和用GetClassLongA获取样式,弄出来是负数,在原始窗口正常,在炫彩窗口上比较特别吗?

炫彩窗口是从内存加载的布局文件创建的。

最佳答案

查看完整内容

SetClassLong Function If the function succeeds, the return value is the previous value of the specified 32-bit integer. If the value was not previously set, the return value is zero. If the function fails, the return value is zero. To get extended error information, call GetLastError. 如果失败返回值是0 , 如果成功返回先前设置的值, 如果先前没有设置,返回0;
  • TA的每日心情
    开心
    2022-1-9 18:18
  • 发表于 2016-1-15 15:03:44 | 显示全部楼层
    SetClassLong Function

    If the function succeeds, the return value is the previous value of the specified 32-bit integer. If the value was not previously set, the return value is zero.

    If the function fails, the return value is zero. To get extended error information, call GetLastError.

    如果失败返回值是0 , 如果成功返回先前设置的值, 如果先前没有设置,返回0;
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2022-1-9 18:18
  • 发表于 2016-1-15 17:05:45 | 显示全部楼层
    更多错误信息 GetLastError() 调用该函数 获取错误码, 错误码MSDN上查
    回复

    使用道具 举报

    该用户从未签到

    发表于 2016-1-17 13:32:15 | 显示全部楼层
    负数不影响 ,只要窗口有了你的样式,就可以了
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 加入我们

    本版积分规则

    QQ|Archiver|手机版|小黑屋|炫彩界面库 ( 鄂ICP备2023014763号-1 )

    GMT+8, 2024-4-30 18:48 , Processed in 0.070278 second(s), 17 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表