VB6.0 borderstyle=0 为什么会显示标题,我不想要标题条

[复制链接]
查看11 | 回复3 | 2009-7-12 16:45:20 | 显示全部楼层 |阅读模式
不需设置borderstyle为0,只需在属性窗口中,依次把Form1的Caption改为空,ControlBox设为False,ShowInTaskBar设为True如果要在任务栏中也显示,就用API函数吧:代码中写:Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Private Sub Form_Load()SetWindowText Me.hwnd, "你想显示什么呢?"End Sub...
回复

使用道具 举报

千问 | 2009-7-12 16:45:20 | 显示全部楼层
模块代码掉用方法 call FrmStyle(Me.hwnd)Private Declare Function SetWindowLong Lib "User32" Alias "SetWindowLongA" (ByVal Hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) ...
回复

使用道具 举报

千问 | 2009-7-12 16:45:20 | 显示全部楼层
2L的真简洁啊,谢谢给出这么帅的解决方案,我学会了谢谢谢谢...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行