473,387 Members | 1,942 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.

how to get desktop window handle?

Hi,

I use API GetDesktopWindow to get desktop window handle and compare with
WindowFromPoint(x,y) to get window handle.
GetDesktopWindow return 65556
WindowFromPoint return 65700
but I use apy++ to get desktop window handle, it return 100A2 or 1000A4
why?
Best Wish,

Harvie

2006-6-27
Jun 27 '06 #1
4 25172
0x100a4 = 65700 in decimal

harvie wang wrote:
Hi,

I use API GetDesktopWindow to get desktop window handle and compare with
WindowFromPoint(x,y) to get window handle.
GetDesktopWindow return 65556
WindowFromPoint return 65700
but I use apy++ to get desktop window handle, it return 100A2 or 1000A4
why?
Best Wish,

Harvie

2006-6-27


Jun 27 '06 #2
Hello matt,

thanks very much!
but why the GetDesktopWindow return do not equal to WindowFromPoint?
0x100a4 = 65700 in decimal

harvie wang wrote:
Hi,

I use API GetDesktopWindow to get desktop window handle and compare
with
WindowFromPoint(x,y) to get window handle.
GetDesktopWindow return 65556
WindowFromPoint return 65700
but I use apy++ to get desktop window handle, it return 100A2 or
1000A4
why?
Best Wish,

Harvie

2006-6-27

Jun 27 '06 #3
harvie wang wrote:
Hello matt,

thanks very much!
but why the GetDesktopWindow return do not equal to WindowFromPoint?
0x100a4 = 65700 in decimal

harvie wang wrote:
Hi,

I use API GetDesktopWindow to get desktop window handle and compare
with
WindowFromPoint(x,y) to get window handle.
GetDesktopWindow return 65556
WindowFromPoint return 65700
but I use apy++ to get desktop window handle, it return 100A2 or
1000A4
why?
Best Wish,

Harvie

2006-6-27


Hi Harvie,

You may or may not realise that the desktop window isn't what you see on
your screen, when you're looking at your desktop icons. You're seeing a
listview, which fills the desktop window.

--
Hope this helps,
Tom Spink
Jun 27 '06 #4
Hello Tom,

Thanks!
It's right :)
I use spy++ to find window, got "desktop window" class is listview.
Then how can i know the mouse click window is a desktop window or i click
the place is not any other window except the listview.
I want to know use click the place can see the wallpaper (desktop window).

harvie wang wrote:
Hello matt,

thanks very much!
but why the GetDesktopWindow return do not equal to WindowFromPoint?
0x100a4 = 65700 in decimal

harvie wang wrote:

Hi,

I use API GetDesktopWindow to get desktop window handle and compare
with
WindowFromPoint(x,y) to get window handle.
GetDesktopWindow return 65556
WindowFromPoint return 65700
but I use apy++ to get desktop window handle, it return 100A2 or
1000A4
why?
Best Wish,
Harvie

2006-6-27

Hi Harvie,

You may or may not realise that the desktop window isn't what you see
on your screen, when you're looking at your desktop icons. You're
seeing a listview, which fills the desktop window.

Jun 28 '06 #5

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

Similar topics

9
by: Etienne Charland | last post by:
Hi, there is an application running on a remote desktop (under Citrix ICA, but the same problem applies for RDC or PC Anywhere). Now, I want to send keys to the remote application from a local app....
1
by: kiplring | last post by:
I wrote a program which draw a dancer at cornor of desktop. ( I Accessed through hDC) But It has a problem. I remains all trait at the desktop until I invoke any Redraw( Refresh) action - click,...
3
by: °Ë´óɽÈË | last post by:
Hi, I create a graphics object for desktop window by following step: IntPtr hWnd = GetDesktopWindow(); // API Graphics g = Graphics.FromHWnd(hWnd); then draw the screen by g, but I can't draw...
3
by: Henrik | last post by:
I need to get a list of clickable objects on the desktop and their positions. I have written a small program in C# and by using the Win32 function: WindowFromPoint -function I get a handle to the...
3
by: harvie wang | last post by:
Hi, I create a system mouse hook, to get mouse position and click events. use GetDesktopWiindow and WindowFromPoint(x,y) to get window handle in my hook proc. Click mouse on desktop window and...
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...
3
by: Jay | last post by:
Hey There, Is it possible to get an unique identifier for a desktop that a particular app is running from, from a service? If there are two instances of the app running on different desktops (one...
1
by: gnrgattadi | last post by:
I have Created A ListBox Control Whose Handle is Desktop. My code for ListBox: #using using namespace System;
2
by: =?Utf-8?B?U2hhdW5P?= | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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.