hwnd Questions
2
Solved
I have a situation where when I receive a message I must delete a window just from the hWnd. I though this must be possible since CreateWindowEx creates an object by returning a HWND, I must be abl...
6
Solved
In Java 1.4 you could use ((SunToolkit) Toolkit.getDefaultToolkit()).getNativeWindowHandleFromComponent() but that was removed.
It looks like you have to use JNI to do this now. Do you have the JN...
Highcolored asked 22/12, 2008 at 17:20
1
Solved
With a class (TObject) I have :
private
FHwnd : HWND;
procedure HandleMyMessage(var Message : TMessage); message TH_MYMESSAGE;
where TH_MYMESSAGE = WM_USER + 1
In the class constructor:
FHwn...
Disorder asked 6/6, 2012 at 12:10
1
Solved
The definition of WinMain is:
int CALLBACK WinMain(
_In_ HINSTANCE hInstance,
_In_ HINSTANCE hPrevInstance,
_In_ LPSTR lpCmdLine,
_In_ int nCmdShow
);
What I understand is:
hInstance...
2
Solved
I am developing an add in for excel. At some point, I can receive async events. I need to be able to show the Excel window if hidden on these events.
I am able to store the Hwnd property, which I ...
1
I have a custom method that finds the largest size to use for a given string and font to fill a given box without cutting off the text. To test it, I created a service that cycles through a few dif...
Presnell asked 8/7, 2011 at 13:23
1
is there a way to pass input events (primarily mouse, but eventually keyboard input too) that occurs on a HwndHost back to the underlying WPF controls (e.g. a panel) ? i can hook up to WndProc with...
Madson asked 25/8, 2010 at 8:10
1
Solved
I am trying to embed a HWND (Window Handle) in a JPanel.
Actually, I can embed my HWND into a JFrame, but the embedded window alway stay on top of the other component and I can't move it. If a try...
2
Solved
I remember a few years back, I used a program that was capable of showing properties and HWND of any object such as windows and buttons in any Windows program. As I remember it, you just held the m...
Cowan asked 27/12, 2010 at 9:4
5
Solved
I'm trying to get the name of the executable of a window that is outside my C# 2.0 application. My app currently gets a window handle (hWnd) using the GetForegroundWindow() call from "user32.dll".
...
Daedalus asked 10/11, 2008 at 4:59
1
Solved
I'm using a third-party class that spawns an instance of Internet Explorer. This class has a property, hWnd, that returns the hWnd of the process.
Later on down the line, I may want to reuse the i...
3
Solved
Ho do I get hWnd of the current window/form in VB6?
1
Solved
My WPF application leaks memory at about 4kb/s. The memory usage in Task Manager climbs constantly until the application crashes with an "Out of Memory" exception.
By doing my own research I have ...
Kindling asked 10/11, 2009 at 5:39
3
Solved
Those darned users and their minimized windows.
In C#, if I have a window's HWND, is there a way to tell if it is visible on the desktop?
4
4
Solved
According to msdn, when I get a CWnd* with CWnd::FromHandle,
The pointer may be temporary and should not be stored for later use.
What is meant by "later use" is not clear to me. Is it only th...
8
Solved
since I couldn't find an answer to this question I researched a bit further into the MSDN and I found isChild(). It might give me the answer to that other question.
Now, in order to use isChild() ...
2
Solved
My application is a vb6 executable, but some newer forms in the system are written in C#. I would like to be able to set the C# form's Owner property using a handle to the main application window, ...
3
Solved
How can I cast long to HWND (C++ visual studio 8)?
Long lWindowHandler;
HWND oHwnd = (HWND)lWindowHandler;
But I got the following warning:
warning C4312: 'type cast' : conversion from 'LONG'...
Overtime asked 18/9, 2008 at 6:24
© 2022 - 2024 — McMap. All rights reserved.