CreateWindowEx 创建无边框窗体,以下代码怎么改

DimwcAsWNDCLASSDimuMsgAsMSGDimrtOwnerAsRECT,ptOwnerAsPOINTAPI'注册窗口类wc.style=CS_VREDRA... Dim wc As WNDCLASS
Dim uMsg As MSG
Dim rtOwner As RECT, ptOwner As POINTAPI

'注册窗口类
wc.style = CS_VREDRAW Or CS_HREDRAW
wc.lpfnWndProc = GetFuncAddr(AddressOf WindowProc)
wc.hInstance = App.hInstance
wc.hCursor = LoadCursor(0, IDC_ARROW)
wc.hbrBackground = COLOR_WINDOW
wc.lpszClassName = "MyWindowClass"

If RegisterClass(wc) = 0 Then Exit Sub

'创建所有者窗口
m_hOwner = CreateWindowEx(0, wc.lpszClassName, "OwnerWindow", _
WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, App.hInstance, ByVal 0&)
UpdateWindow m_hOwner
ShowWindow m_hOwner, SW_SHOWNORMAL
展开
 我来答
ljl88900
2011-08-03 · TA获得超过2660个赞
知道大有可为答主
回答量:2197
采纳率:100%
帮助的人:2601万
展开全部
'代码不变,只增加一行代码,请自行定义所需的变量。
Dim wc As WNDCLASS
Dim uMsg As MSG
Dim rtOwner As RECT, ptOwner As POINTAPI

'注册窗口类
wc.style = CS_VREDRAW Or CS_HREDRAW
wc.lpfnWndProc = GetFuncAddr(AddressOf WindowProc)
wc.hInstance = App.hInstance
wc.hCursor = LoadCursor(0, IDC_ARROW)
wc.hbrBackground = COLOR_WINDOW
wc.lpszClassName = "MyWindowClass"

If RegisterClass(wc) = 0 Then Exit Sub

'创建所有者窗口
m_hOwner = CreateWindowEx(0, wc.lpszClassName, "OwnerWindow", _
WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, App.hInstance, ByVal 0&)
'去掉边框
Call SetWindowLong(hOwner, GWL_STYLE, GetWindowLong(hOwner, GWL_STYLE) And Not WS_CAPTION And WS_CLIPCHILDREN And WS_CLIPSIBLINGS)
UpdateWindow m_hOwner
ShowWindow m_hOwner, SW_SHOWNORMAL
yunlkong
2011-08-07 · TA获得超过5711个赞
知道大有可为答主
回答量:9695
采纳率:0%
帮助的人:1.9亿
展开全部
select a.fromstepid,
case a.isauto when 1 then b.tostepid else a.tostepid end as tostepid
from step a
left join step b on a.tostepid=b.fromstepid
where a.fromstepid not in
(select tostepid from step where isauto=1)
SQL Server2005,测试通过
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式