On a terminal server if we close the connexion without exiting our application, the next time we connect to the terminal server some control are not visible :
link to image : imageshack.us/photo/my-images/190/22961085.jpg/
over each cextedit we have a cextlabel.
This window is dynamically created, the window have the WS_CLIPSIBLINGS and WS_CLIPCHILDREN style
and for each control inside groupbox we use this command :
m_pEdit[i]->SetWindowPos(&wndBottom,0,nYstart - (nHeightLabel + nbetweenLabelEdit),0,0,SWP_NOSIZE);
and for groupbox :
m_pGroupBOx[j]->SetWindowPos(&wndTop, 5, nYStartFrame,nWidthFrame,nHeightFrame + nCreditOffset , 0);