// 为窗口设置标题 func win_handler_setTitle(browser *cef.Browser, args []cef.V8Value) (result interface{}) { title := cef.V8ValueToString(args[0]) h := win.HWND(browser.GetWindowHandle()) win.SetWindowText(h, title) return }
func (w *WindowBase) SetWindowText(title string) { fmt.Printf("SetCaption hwnd: %v, %s\n", w.hwnd, title) win.SetWindowText(w.hwnd, title) }