コード例 #1
0
ファイル: handler.go プロジェクト: CodyGuo/ngui
// 为窗口设置标题
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
}
コード例 #2
0
ファイル: window.go プロジェクト: CodyGuo/gowi
func (w *WindowBase) SetWindowText(title string) {
	fmt.Printf("SetCaption hwnd: %v, %s\n", w.hwnd, title)
	win.SetWindowText(w.hwnd, title)
}