Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 25th, 2005, 11:40 AM
Authorized User
 
Join Date: Jul 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default overlapping child 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...


 
Old November 25th, 2005, 06:06 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

With the parent set to Desktop, only the memory which the TreeView needs to keep itself alive is there with your application, the Window is related more to the Desktop Window than to your control's. With that happening, how much or what kind of control you will have on the tree, demands some finding out.

Interesting queries you have been sending to this forum though. But as I could see you are not getting many responses, probably 'cause you are not posting the code that matters more (u R posting a lot of code however, so no complaints in that regard). Like in this query, the Tree control already had a child-parent relationship with the ListControl window when you switched the parent with Desktop Window. How that effects the app's behavior is something that people here would be more interested to assess if you had posted code with which you set up the tree control in ListControl's cell.

Give it a thought. Present the problems to others in a way you would want them to be presented to you.

Thanks for you contribution to the forum, anyways. Your queries ARE of those true VC++ types, something interesting u are up to I must say. Thanks again for your contributions.

Regards
Ankur Verma
 
Old November 28th, 2005, 04:17 AM
Authorized User
 
Join Date: Jul 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Thanks Ankur,I would have liked to show my problem with a small application.
Iam using flexgrid8(Unicode Light) instead of the treectrl in my application. so in that case,there would be a need of vsflexgrid installed,if some one wants to have a go at my application.
Anyway will try ur suggestions & get back to u...






Similar Threads
Thread Thread Starter Forum Replies Last Post
Using DetailsView control to add record to Child megnin ASP.NET 1.x and 2.0 Application Design 0 September 5th, 2008 03:37 PM
Overlapping id's problem Gert SQL Server 2005 4 May 26th, 2006 03:55 AM
DataGrid As Child Control brettk_1 ASP.NET 1.0 and 1.1 Basics 1 August 23rd, 2005 05:06 AM
Asp.Net Server Controls Overlapping Problem vinod_pawar1 General .NET 1 August 15th, 2004 06:20 PM
Accessing parent control functions from child badgolfer VS.NET 2002/2003 2 January 9th, 2004 07:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.