mirror of
https://gitee.com/energye/energy.git
synced 2024-11-30 18:57:39 +08:00
37 lines
1.1 KiB
Go
37 lines
1.1 KiB
Go
//----------------------------------------
|
|
//
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
//
|
|
// Licensed under GNU General Public License v3.0
|
|
//
|
|
//----------------------------------------
|
|
|
|
//go:build windows
|
|
// +build windows
|
|
|
|
package cef
|
|
|
|
import (
|
|
"github.com/energye/golcl/lcl/types"
|
|
)
|
|
|
|
//显示标题栏
|
|
func (m *LCLBrowserWindow) ShowTitle() {
|
|
//win.SetWindowLong(m.Handle(), win.GWL_STYLE, uintptr(win.GetWindowLong(m.Handle(), win.GWL_STYLE)|win.WS_CAPTION))
|
|
//win.SetWindowPos(m.Handle(), m.Handle(), 0, 0, 0, 0, win.SWP_NOSIZE|win.SWP_NOMOVE|win.SWP_NOZORDER|win.SWP_NOACTIVATE|win.SWP_FRAMECHANGED)
|
|
if m.TForm == nil {
|
|
return
|
|
}
|
|
m.TForm.SetBorderStyle(types.BsSizeable)
|
|
}
|
|
|
|
//隐藏标题栏
|
|
func (m *LCLBrowserWindow) HideTitle() {
|
|
//win.SetWindowLong(m.Handle(), win.GWL_STYLE, uintptr(win.GetWindowLong(m.Handle(), win.GWL_STYLE)&^win.WS_CAPTION))
|
|
//win.SetWindowPos(m.Handle(), m.Handle(), 0, 0, 0, 0, win.SWP_NOSIZE|win.SWP_NOMOVE|win.SWP_NOZORDER|win.SWP_NOACTIVATE|win.SWP_FRAMECHANGED)
|
|
if m.TForm == nil {
|
|
return
|
|
}
|
|
m.TForm.SetBorderStyle(types.BsNone)
|
|
}
|