找回密码
 加入
搜索
查看: 5731|回复: 8

[GUI管理] RichEdit富文本编辑框遇到的问题?【已解决】

  [复制链接]
发表于 2011-7-23 21:23:06 | 显示全部楼层 |阅读模式
本帖最后由 gto250 于 2011-7-23 21:56 编辑

#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiRichEdit.au3>
#Region ### START Koda GUI section ### Form=
$hGui = GUICreate("Form1", 615, 438, 192, 124)

$Edit1 =_GUICtrlRichEdit_Create($hGui, "This is a test.", 32, 16, 529, 105, BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL))
$Edit2 =_GUICtrlRichEdit_Create($hGui, "This is a test0.", 32, 152, 529, 97, BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL)) 


GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        GUIDelete()
                        Exit

        EndSwitch
WEnd


我用上面的代码,想得到一个界面中有两个富文本编辑框的效果,但是实现不了!
是我的代码有问题还是其他问题?

系统版本:win7 旗舰版
au3版本:3.3.7.13
发表于 2011-7-23 21:37:50 | 显示全部楼层
我这边测试正常,得到了两个文本框。
 楼主| 发表于 2011-7-23 21:55:46 | 显示全部楼层
已经找到原因!
include中的GuiRichEdit.au3文件问题!
我把3.3.7.13中的文件换为3.3.6.1中的包含文件后一切正常
GuiRichEdit.au3文件的1021行
3.3.6.1版本中的GuiRichEdit.au3文件为
If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0)                ; Invalid Window handle for _GUICtrlRichEdit_Create 1st parameter
3.3.7.13版本中的GuiRichEdit.au3文件为
If Not _WinAPI_IsClassName($hWnd, $_GRE_sRTFClassName) Then Return SetError(1, 0, 0)                ; Invalid Window handle for _GUICtrlRichEdit_Create 1st parameter
发表于 2011-9-7 11:17:52 | 显示全部楼层
非常感谢.终于找到答案了..
发表于 2012-5-28 18:47:31 | 显示全部楼层
我看到的就只有文本框。。。
发表于 2012-5-28 19:05:03 | 显示全部楼层
我回个帖5块我要回6下 下个东西  妈啦个比

评分

参与人数 1金钱 -20 收起 理由
user3000 -20

查看全部评分

发表于 2012-5-28 20:05:21 | 显示全部楼层
本帖最后由 netegg 于 2012-5-28 20:06 编辑

3.3.9.0已经改回来了
发表于 2013-12-9 15:55:11 | 显示全部楼层
解决问题了还骂人
发表于 2016-9-27 16:38:26 | 显示全部楼层
顶起,善于学习。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-17 05:01 , Processed in 0.081470 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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