|
I am able to find the Parent Window but I would like to have the list of all its Child Windows, in order to find their Class Name & Window Name, can anyone help?
I have used:
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string lclassName, string windowTitle);
[DllImport("user32.dll")]
private static extern IntPtr FindWindow(string className, string windowName);
Thanks in-advanced
|
|
|
|
|
...and?
You build your own list. There is no function that returns the entire child window handles tree. You have to build it yourself.
I suggest reading the documentation on the EnumChildWindows[^] function.
|
|
|
|
|
While I am waitting for a reply I found this and it works
http://www.experts-exchange.com/Programming/Languages/.NET/Q_26708666.html
Thank you anyway
|
|
|
|
|
Member 10636998 wrote: While I am waitting for a reply
That is called RESEARCH and should be done BEFORE posting the question.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Sorry, I disagree with this reply. At least he made an effort of trying to find a solution. You're never sure to get a reply...
|
|
|
|
|
I am trying to encourage the OP to do some research before posting, I find 95% of my questions have already been answered somewhere, usually many times. Also note that I did not down vote the OP, that would have been very unreasonable.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I make a graphics app and I need to know when the display is refreshed.In which mode I can to call this event(vsync)
Roland
|
|
|
|
|
There is no "event".
You haven't specified anything about your app, how you're writing it, or if you're even using DirectX, so it's pretty much impossible to tell you anything useful.
|
|
|
|
|
This is probably an example of the XY problem[^] - you have problem X and you think Y will solve, but you can't figure out how so you ask for help with Y.
That sometimes works, but often it doesn't - that Y is hard is often because Y isn't the best solution to begin with (it might not even be possible).
What problem are you really trying to solve? If you just want to render with vsync, it depends on what API you're using (you should tell us which one), but it will never involve a vsync event because it doesn't exist.
|
|
|
|
|
Hi,
I have a computer with two monitors. Primary monitor display normal but i want to flip (not rotate) image of second monitor. How can i implement it by c# programing ? Pls point me some hints.
Thanks
|
|
|
|
|
By "Flip" do you mean "mirror left - right", so that all the text comes out backwards?
Because if so, then I doubt if you can - I've never heard of it being done - but if you can it's probably going to be dependant on your video card driver.
I'd start by asking them.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
I would have thought checking the monitor stand would be the first step!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
And how is that flipped? It looks pretty "Normal" to me...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
We all make mistakes!
Yes, that's a horizontal mirror - as I said, I think you need to start with the video card driver - I've never seen that done in any high level language, and I doubt it's a standard feature (as it renders text unreadable to many people).
Email your card maker!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
My card is: Mobile Intel(R) 945 Express Chipset Family
|
|
|
|
|
I think he means you should mail Intel for info on how their card works
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Yeah...I should have phrased that better, shouldn't I?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
i mean, like images below:
Normal desktop:
http://i61.tinypic.com/2w5ivib.png
Flipped desktop:
http://i61.tinypic.com/2s8mj5u.png
In c#, i only find the way out to rotate it.
Thanks
|
|
|
|
|
asp.net MVC related latest news ?
modified 13-May-14 5:56am.
|
|
|
|
|
You already have this posted in Quick Answers - don't duplicate posts, it duplicates work and annoys people.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
As Original Griff said, don't cross post.
Even if this weren't a cross post with Q&A, it would have been much better posted in the ASP.Net forum, and you should also format your post so it can be read.
|
|
|
|
|
This is now a nonsense question, even if it did make sense it would be in the wrong forum.
Please read the site guidance about how to ask a question - practically everyone here is an unpaid volunteer.
|
|
|
|
|
The OP changed the question because they'd crossposted it.
|
|
|
|