Overlapping control -problem
-
Hi, Iam working with a ListControl whose parent is a dialog. In one the cell of the listcontrol,I place a tree control which on doubleclicking should open up & overlap the dialog control. I achieved the treecontroloverlapping by writing as follows: treeControl.SetParent(GetDesktopWindow()); treeControl.ShowWindow(true); treeControl.BringWindowToTop(); treeControl.SetFocus(); treeControl.MoveWindow(500,300,400,200); Now,the problem I have in hand is that the overlapped treecontrol is not active.Can't do anything over there. Tried "EnableWindow","SetActiveWindow" etc.but the overlapped treecontrol is not getting enabled. Any help is appreciated... Thanks...
-
Hi, Iam working with a ListControl whose parent is a dialog. In one the cell of the listcontrol,I place a tree control which on doubleclicking should open up & overlap the dialog control. I achieved the treecontroloverlapping by writing as follows: treeControl.SetParent(GetDesktopWindow()); treeControl.ShowWindow(true); treeControl.BringWindowToTop(); treeControl.SetFocus(); treeControl.MoveWindow(500,300,400,200); Now,the problem I have in hand is that the overlapped treecontrol is not active.Can't do anything over there. Tried "EnableWindow","SetActiveWindow" etc.but the overlapped treecontrol is not getting enabled. Any help is appreciated... Thanks...
Why not make the tree control's parent the dialog instead of the desktop window? Just insert it in Z-order after the list control so that it will appear in front of the list control.
-
Why not make the tree control's parent the dialog instead of the desktop window? Just insert it in Z-order after the list control so that it will appear in front of the list control.