func (w *WindowBase) Text() string {
	return w.GetWindowText()
}
Text alias to GetWindowText
package wingui
import (
	"syscall"
	"unsafe"
	"github.com/lxn/win"
)
type WindowBase struct {
	hwnd win.HWND
	idd uintptr
	lpPrevWndFunc uintptr
	Subclassing bool
}
func (w *WindowBase) AsWindowBase() *WindowBase {
	return w
}
func (w *WindowBase) Init(hwnd win.HWND, idd uintptr) {
	w.hwnd = hwnd
	w.idd = idd
}
func (w *WindowBase) Handle() win.HWND {
	return w.hwnd
}
func (w *WindowBase) SetWindowText(title string) {
	win.SendMessage(w.hwnd, win.WM_SETTEXT, 0, uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(title))))
}
func (w *WindowBase) GetWindowText() string {
	textLength := win.SendMessage(w.hwnd, win.WM_GETTEXTLENGTH, 0, 0)
	buf := make([]uint16, textLength+1)
	win.SendMessage(w.hwnd, win.WM_GETTEXT, uintptr(textLength+1), uintptr(unsafe.Pointer(&buf[0])))
	return syscall.UTF16ToString(buf)
}