473,785 Members | 2,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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( foreignWindowHa ndle, 0, 0,myPanel.Width , myPanel.Height, true);
w32.SetParent(f oreignWindowHan dle, 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 2105
ShaunO wrote:
[...]
w32.MoveWindow( foreignWindowHa ndle, 0, 0,myPanel.Width , myPanel.Height, true);
w32.SetParent(f oreignWindowHan dle, 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( foreignWindowHa ndle, 0, 0,myPanel.Width , myPanel.Height, true);
w32.SetParent(f oreignWindowHan dle, 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
1679
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 is registrated in germany I have to follow German laws, but the form should be Finnish. thanks Werner
0
1348
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
6376
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 Remote Desktop ActiveX control in my C# app and this works fine. However i have now a new requirement for my app: multiple users have to be able to view and control the same remote desktop simultaneously using my application. Big problem:...
5
2383
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. One thing that I would like to be able to do is display a screen capture of our product running. I have the code to get the screen capture of the desktop and I also know how to send the image back to the client to be displayed. The problem is that...
11
5589
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 displays a continuously changing output value. In this Winamp plugin I cannot use the SendMessage command because it causes lockups with Winamp. I _can_ use SendDlgItemMessage. The following code does the job:
2
1680
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. If I start my app, open a test form using ShowDialog() (this is a menu choice on the main app), and then switch to a different virtual desktop, the test form immediately closes (in what seems to be an abnormal way -- the Closing event is raised,...
15
3039
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 visible? I've tried to find the visible desktop by comparing the desktop handle, returned by the OpenDesktop function, to the desktop handle received by calling OpenInputDesktop. The result is that the default desktop is always the one...
1
3978
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 input panel button to start typing , all the controls I had drawn return to its original size and position as when the program starts for the first time and when I start writing in the edit boxes my drawing function is called so I can redraw the...
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.