473,379 Members | 1,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Running an application inside .NET MDI application

1
I am developing a .NET MDI application in C# VS2005.
One of the MDI client windows is running an MFC based application within the window (GPS navigation software).
This is all fine, but it seems that the MFC application overrules the MDI functionality of the .NET application. I can not minimize the MFC window, hide it or resize it without having the MDI parent dirty. When I open another "pure" MDI client window, it stays behind the MFC window. I have tried to resize, minimize, change z-order and about everything else I could think of through the user32.dll. Using [user32.dll] SetWindowPos with various parameters has given the best results, but I am missing the last functionality to get my MFC client window to act as a normal MDI window. When trying to hide the MDI form, the MFC application just terminates.
The MFC application is wrapped in a custom user control. This custom user control is then added to the MDUI form in my project.

I can post some of the code. But to me it seems that it is not the code, but the strategy that is wrong here.

So, any questions and ideas are more than welcome.

BR
/Tulkas
Jan 19 '08 #1
0 931

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Ken Brubaker | last post by:
Using DB2 8.1 FP5 on Win2000 After creating and configuring a new database, we stop db2 and start it again. We then launch our application and the SQLExecute calls start slowly and get...
4
by: Randy | last post by:
Hi, ok, I found a way to connect to a running instance of an (external) Internet Explorer and access - for example - the html source. That works fine! But now I have running application with...
2
by: MattMenard | last post by:
I've written a C program that I want to run inside an Gui wrapper that I started to write in MFC. I have to select some files then kick off a process running the C program. I have the initial...
1
by: Punit Singhal via DotNetMonster.com | last post by:
Hello, I have built a ASP.NET application and created a installer with the help of deployment wizard given in Visual Studio DotNet. But I am unable to install the application when IIS is...
7
by: MgGuigg | last post by:
Hello all, This is my first time posting a question to this forum, so here is hoping I am following protocol. I am scraping the rust off my old Basic programming skills, and have just recently...
3
by: lazycoder207 | last post by:
hello, i have a windows application which is fully self sufficient..it has a form with a few controls and the usual event handling... i made another windows application with a tabcontrol with a...
4
by: commander_coder | last post by:
Hello, I write a lot of CGI scripts, in Python of course. Now I need to convert some to long-running processes. I'm having trouble finding resources about the best practices to do that. ...
2
by: Lloyd Sheen | last post by:
While using VS 2005 Pro I get this about 50% of the time. I run the app. See whats wrong. Stop the app (stop debugging button). Make changes and then click the start debugging button. If I...
7
by: =?Utf-8?B?U2hpdmEgUmFtYW5p?= | last post by:
I have a windows application with multiple forms & another web application. Now I need a parent EXE or Application which need to act as a container to these application. Example : My existing Web...
3
by: mxed | last post by:
Hey I'm trying to create an app as a "graphic" container, where I can have other app's running inside of it .. eg. I have a tab window with two tabs. In the first tabpage I could have notepad...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.