Example #1
0
// 为窗口设置标题
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
}
Example #2
0
func (w *WindowBase) SetWindowText(title string) {
	fmt.Printf("SetCaption hwnd: %v, %s\n", w.hwnd, title)
	win.SetWindowText(w.hwnd, title)
}