I'm using the win32 Platform SDK (on XP Pro) to create an app consisting a single main window with a number of child windows.
The styles passed to CreateWindow are WS_OVERLAPPEDWINDOW | WS_VISIBLE (for the main window) and WS_CHILDWINDOW | WS_VISIBLE for the children.
The error I'm seeing is that when another application is dragged on ...
Hello Everyone,
If I have a handle to a window, how do I take a screenshot of any new child windows when they show up? Right now I have code that takes a screenshot every .1 seconds of a windows form. When I click on a drop down list box the subsequent screenshots do not include it. Using spy++ I can see that a new child window was c...
Hi guys, I have this problem. I have an handler to the mainWindow of a certain application, and I want to simulate a keypress on that application...
I'm using sendMessage/postMessage api calls to do this. The reason why I don't use the .Net SendKeys function or the keybd_event of the win32 api, is that they simulate the keypress at a gl...
Hello,
I need to get the Handler to the child Window of a certain application that is running. I have the main window handler, but I need to know which specific child window is active, in order to use the SendMessage/PostMessage.
I finally managed to do this using the following code, using firefox:
[DllImport("user32.dll")]
st...
Hi guys,
I have this problem: I have an handler to the mainWindow of a certain application, and I want to simulate a keypress on that application...
I'm using sendMessage/postMessage api calls to do this. The reason why I don't use the .Net SendKeys function or the keybd_event of the win32 api, is that they simulate the keypress at a gl...
Hi,
I want to send a pressKey event to a certain application which is not the active application IN Windows so I have to use the sendMessage/postMessage api calls.
However, I need to know the exact child window that is active IN the application and send the pressKey message to it...
I was using GetTopWindow and GetWindow(GW_CHILD) ap...
Hello guys,
I am working on a .NET C# application that has a main Form which is MDI container. When the user maximizes a MDI child, Windows draws a control strip right under the title bar of the container Form which has the Icon of the child and the system buttons on the right. Basically, what I need is hide this strip and use a custom ...
My app (written in C++) uses Win32 (not MFC) to create a couple of windows with CreateWindowEx. The main window gets the desktop as parent, the child windows get the main window as parent.
my problem:
my app has an active child window
I switch to another app (per click, ALT+TAB or other, doesn't matter)
I switch back to my app with AL...
Hello,
I like ChildWindow in Silverlight 3 but I don't like the manner it appears on the screen. It appears too quick and even irritates the eyes.
Maybe does someone know how to change this manner, make it softer and maybe slower?
Thanks
...
I have a Collection of Places that is displayed in View Model ListBox Items. Each Place(List Item) has a set of six selections that open a different child window for each that display the information branch for the Place.
An example is a group(List) of Towns(List Items) that have six streets(Child Windows) that have different addresse...
Hi, this is my ChildWindow xaml code:
1 <Grid x:Name="LayoutRoot">
2 <Grid x:Name="teste">
3 <Grid.ColumnDefinitions>
4 <ColumnDefinition Width="*"/>
5 <ColumnDefinition Width="*"/>
6 </Grid.ColumnDefinitions>
7 <Grid.RowDefinitions>
8 <RowDefinition />
9 <RowDefinition Height="Auto...
Hello, I have some problems with ChildWindow control, I have created an error window control that is shown after unhandled exception is caught in app.xaml.cs. The problem is when I try to show the error window, sometimes it works fine, but sometimes I get this nasty exception:
Message:
Error HRESULT E_FAIL has been returned from a cal...
Application.Current.RootVisual.KeyDown += Application_KeyDown
The above does not work if I'm on a ChildWindow - that was instantiated in runtime. My question is, how do I get the mousemove or keydown event in the Parent Window that hosts this ChildWindow?
Also, I'd rather not change anything in the childwindow (i.e., add an event that...
By default the ChildWindow Overlay covers (and disables) the entire root visual. I want to cover (and disable) just part of my UI. How can I alter the existing ChildWindow to allow me to specify the Root?
Thanks,
Mark
...
I'm trying to do a confirmation dialog using Silverlight's ChildWindow object.
Ideally, I'd like it to work like MessageBox.Show(), where the entire application halts until an input is received from the user.
For example:
for(int i=0;i<5;i++) {
if (i==3 && MessageBox.Show("Exit early?", "Iterator", MessageBoxButton.OKCancel) == Mess...
is it possible to make a ChildWindow like ChildWindow in Silverlight, but for WPF? I tried to adapt the Silverlight ChildWindow to WPF but ran into issues with Transformations and not being able to set the Popup's Parent. I'm trying to make something that works simular so I do not have to add code to the XAML for popups. Any ideas?
...
hi all
How can I show a child form within a mdi container form which its windowstate= maximized ?
when I put these below lines of code when my child form is loading (by clicking on a menu Item of my Main form), the child form loses its parent position and does not show within its parent form.
private void mnuUnit_Click(object sender, ...
What would be the best way to go about finding what the active control is on any window? I am going to be sending the WM_PASTE message to it. ChildWindowFromPoint has not been returning a fair few of the selected controls.
...
ChildWindow1 wnd1 = new ChildWindow1();
ChildWindow2 wnd2 = new ChildWindow2();
wnd1.Show();
//**Is there a way to pause thread here until wnd1 is closed???**
wnd2.Show();
...
So here is the deal. I have created a silverlight dll that contains two ChildWindow dialogs. These dialogs are self contained with a WCF service reference. I want to reuse these dialogs across multiple projects. I have added a reference to the dll in another project. I am able to new up the childWindow, however, I am not able to set...