Skip to content

Commit

Permalink
Fix: #33 After obtaining the window handle, pop-up window dragging fa…
Browse files Browse the repository at this point in the history
…iled
  • Loading branch information
sxmxta committed Jul 29, 2024
1 parent 68af9b1 commit 4619b3a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cef/browser_window_lcl.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ type LCLBrowserWindow struct {
onPaint []lcl.TNotifyEvent //扩展事件 向后链试循环调用
auxTools IAuxTools //辅助工具
tray []ITray //托盘 可以同时创建多个
hWnd types.HWND //
cwcap *customWindowCaption //自定义窗口标题栏
drag *drag //自定义拖拽
wmPaintMessage wmPaint //
Expand Down Expand Up @@ -255,10 +254,7 @@ func (m *LCLBrowserWindow) SetOnWndProc(fn lcl.TWndProcEvent) {

// Handle 窗口句柄
func (m *LCLBrowserWindow) Handle() types.HWND {
if m.hWnd == 0 {
m.hWnd = m.TForm.Handle()
}
return m.hWnd
return m.TForm.Handle()
}

// RunOnMainThread
Expand Down

0 comments on commit 4619b3a

Please sign in to comment.