Exemplo n.º 1
0
func (s *Window) SetTitle(title string) {
	// message handling
	hwnd := C.HWND(unsafe.Pointer(s.GetHwnd()))
	C.SetWindowTextW(hwnd, (*C.WCHAR)(unsafe.Pointer(sciter.StringToWcharPtr(title))))
}
Exemplo n.º 2
0
// Change the title of the window
func (wi *windowInternal) setTitle(title string) {
	t, _ := utf16Convert(title)
	C.SetWindowTextW(wi.window.Handle, t)
}