如何在标题栏加一个问号

kilojin 2006-03-09 02:27:16
如何在标题栏加一个问号?

这样像别的软件一样,点它出现一个问号鼠标,然后,在电击其他的出现帮助。

我想大家都有用哦
...全文
214 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
a109788522 2006-04-16
  • 打赏
  • 举报
回复
api createwindow 当中用的ICON用 (IDI-ERROR)就可以了
TianChong 2006-03-10
  • 打赏
  • 举报
回复
都被大家说完了。
hygougou 2006-03-09
  • 打赏
  • 举报
回复
声明:

Function Long GetWindowLong (Long hwnd , Long nIndex) LIBRARY "user32.dll" ALIAS FOR "GetWindowLongA"

Function Long SetWindowLong ( Long hwnd , Long nIndex, Long dwNewLong ) LIBRARY "user32.dll" Alias For "SetWindowLongA"
hygougou 2006-03-09
  • 打赏
  • 举报
回复
改为
constant long GWL_EXSTYLE = -20
hygougou 2006-03-09
  • 打赏
  • 举报
回复
uLong uwx
constant ulong GWL_EXSTYLE = -20
constant ulong WS_EX_CONTEXTHELP = 1024
//从指定窗口的结构中取得信息
uwx = GetWindowLong(Handle(This),GWL_EXSTYLE)
//加入WS_EX_CONTEXTHELP风格并设置
SetWindowLong(Handle(This),GWL_EXSTYLE,uwx + WS_EX_CONTEXTHELP)

ps:

WS_EX_CONTEXTHELP不能与WS_MAXIMIZEBOX和WS_MINIMIZEBOX同时使用

即不能有最大、小化按钮
balloonman2002 2006-03-09
  • 打赏
  • 举报
回复
网上很多这样的例子,自定义标题栏按钮,但其他语言的比较多,用CREATEWINDOW函数
kilojin 2006-03-09
  • 打赏
  • 举报
回复
能不能用API函数自己添加一个?
仅仅response窗口有,不够用!
WWWFIND 2006-03-09
  • 打赏
  • 举报
回复
ContextHelp Boolean
When WindowType = Response!, this property specifies whether the small question mark button appears in the title bar. The question mark button can fire the Help event on the control that is clicked next.
把窗体的 WindowType = Response! ContextHelp = True
然后在各个控件的Help事件中写相应的代码就可以了。
gahade 2006-03-09
  • 打赏
  • 举报
回复
你要做一个response的响应式窗口,选contexthelp属性就会有一个?按钮了!

1,075

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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