473,387 Members | 1,790 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,387 software developers and data experts.

MoveWindow leaving imprint on desktop

Hi,
Background:
I am taking a render window from another application and placing it upon a
panel in my c# application.
This is done by getting the handle to the window of interest then setting
it's parent to be my panel and moving the window over the panel as follows:

w32.MoveWindow(foreignWindowHandle, 0, 0,myPanel.Width, myPanel.Height, true);
w32.SetParent(foreignWindowHandle, myPanel.Handle);

Problem:
When i move the window around at the same time as the foreign application is
repainting then sometimes it will leave an imprint of itself on anything that
was beneath it eg other windows , desktop etc.

Can anyone advise how to resolve this please?

Aug 19 '07 #1
2 2085
ShaunO wrote:
[...]
w32.MoveWindow(foreignWindowHandle, 0, 0,myPanel.Width, myPanel.Height, true);
w32.SetParent(foreignWindowHandle, myPanel.Handle);

Problem:
When i move the window around at the same time as the foreign application is
repainting then sometimes it will leave an imprint of itself on anything that
was beneath it eg other windows , desktop etc.

Can anyone advise how to resolve this please?
I don't have the answer to your question. However, I can guarantee you
that this is the wrong newsgroup for your question, since it has zero to
do with .NET or C#.

You need to find a Win32 programming topics newsgroup to ask your
question, probably one specific to the "User" portion of the Win32 API.

I will say that I'm not surprised you are running into trouble trying to
move a window from a completely different process into the hierarchy of
your own process. I'm surprised any of it works at all.

Pete
Aug 19 '07 #2
Thanks Peter, will follow your advice

"Peter Duniho" wrote:
ShaunO wrote:
[...]
w32.MoveWindow(foreignWindowHandle, 0, 0,myPanel.Width, myPanel.Height, true);
w32.SetParent(foreignWindowHandle, myPanel.Handle);

Problem:
When i move the window around at the same time as the foreign application is
repainting then sometimes it will leave an imprint of itself on anything that
was beneath it eg other windows , desktop etc.

Can anyone advise how to resolve this please?

I don't have the answer to your question. However, I can guarantee you
that this is the wrong newsgroup for your question, since it has zero to
do with .NET or C#.

You need to find a Win32 programming topics newsgroup to ask your
question, probably one specific to the "User" portion of the Win32 API.

I will say that I'm not surprised you are running into trouble trying to
move a window from a completely different process into the hierarchy of
your own process. I'm surprised any of it works at all.

Pete
Aug 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Werner Partner | last post by:
I have a German webseite with an imprint with a Finnish version. Now I want to translate this to Finnish language. Do you know some typical examples for Finnish imprint - I think when my website...
0
by: Robert | last post by:
Hi is there any function in C# to move a window using a handle to a window ? like MoveWindow in C++ thanks Robert
3
by: Elp | last post by:
Hi, I have developped a Windows applcation (in C#) that allows, among other things, users to view and control the desktop of a remote Windows XP Pro machine. I have actually simply embedded the...
5
by: TerryWilson | last post by:
I am developing a web based service tool using asp.net that we will distribute with our product. This service tool will be used for remotely configuring the product, problem determination, etc. ...
11
by: Theo Appelboer | last post by:
Is it possible to change the size of a Windows object (in this case a PictureBox) without calling MoveWindow? I'm writing a plugin for Winamp, in which I want to display a smooth bar that...
2
by: John Brock | last post by:
At work we are using a virtual desktop manager called AltDesk (http://www.astonshell.com/), and it is causing a weird and extremely annoying problem with the VB.NET application I am developing. ...
15
by: Mephisto187 | last post by:
How can I find the currently visible desktop? By calling EnumWindowStations and EnumDesktops I get a list of all available desktops. But is there a way to figure out which one of them is currently...
1
by: mhmdwrad | last post by:
Dear all, I am developing a Windows mobile 6 MFC appplication in which i use movewindow function to resize and move some controls acccoring to and it works fine except that when the user presss the...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.