I've been trying to use SetParent to add new frames to one of my forms. From an aesthetic point of view it works fine, the frame containing a checkbox and a textbox are moved to the new parent. The problem is I cannot click on either the checkbox or the textbox without first clicking on another control on the new parent. A hack I have implemented right now is to use PostMessage WM_LBUTTONDOWN and UP on 0,0 of a control and it's working but if I use tab at all it stops taking focus again.
Has anybody any ideas as to how to avoid this behaviour? I tried http://support.microsoft.com/kb/289498
but if I SetWindowLong on the frame it turns into a block of grey and has the same problem, if I do it on the textbox and checkbox they dissappear.
Thanks in advance,