示例#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++
}