Пример #1
0
func (c *controlSingleHWND) xsetParent(p *controlParent) {
	C.controlSetParent(c.hwnd, p.hwnd)
}
Пример #2
0
func (l *label) setParent(p *controlParent) {
	C.controlSetParent(l.hwnd(), p.c.hwnd)
	// don't increment p.c.nchildren here because Labels aren't tab stops
}
Пример #3
0
func (c *container) setParent(hwnd C.HWND) {
	C.controlSetParent(c.hwnd, hwnd)
}
Пример #4
0
func (s *spinbox) setParent(p *controlParent) {
	C.controlSetParent(s.hwndEdit, p.hwnd)
	C.controlSetParent(s.hwndUpDown, p.hwnd)
}
Пример #5
0
func basesetParent(c controlPrivate, p *controlParent) {
	C.controlSetParent(c.hwnd(), p.c.hwnd)
	p.c.nchildren++
}