Hi, first sorry on awkward english.
I'll try to illustrate my problem:
(dont know how will this look on your scrren)
|--Dialog----------------------------------------------------------------------------|
|
|
| |-------groupbox----
-----------------------------------------------------| |
| |
| |
| |
| |
| | |-------------------------------|
| |
| | | Button P(x,y) |
| |
| | |-------------------------------|
| |
| |
| |
| |
| |
|
|-------------------------------------------------------------------------------|
|
|
|
|
|
|-----------------------------------------------------------------------------------------|
P(x,y) represents (point) position of cursor with coordinates x,y
, and that point
lies on button.
Button and groupbox are childs from dialog.
My problem is how to get handle form Button.
i tryed something like:
(this is only part of code)
HWND hwDlg;
HWND hwGroup;
HWND hwButt;
hwGroup = :: WindowFromPoint(p);
/* this is working, i get valid handle*/
hwDlg = ::GetParent(hwGroup);
/* this is also working */
hwButt = ::RealChildWindowFromPoint(hwDlg,p);
/* but here i always get NULL */
as i understand from msdn RealChildWindowFromPoint should return child
handle if
window(in this case button) if point is "over" window , and window is
in transparent area of groupbox .
any advice is most welcome. 8 10414
"Sinisa" <si*****@inet.hr> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
You need to ask in a Windows newsgroup. The C+ language knows nothing about
windows or mouse coordinates.
-Howard
Howard wrote: "Sinisa" <si*****@inet.hr> wrote in message news:11**********************@g47g2000cwa.googlegr oups.com...
You need to ask in a Windows newsgroup. The C+ language knows nothing about windows or mouse coordinates.
....and we know nothing of the C+ language either! ;-)
[yeah, I know it's a typo...just couldn't resist!]
Cheers,
--ag
--
Artie Gold -- Austin, Texas http://goldsays.blogspot.com http://www.cafepress.com/goldsays
"If you have nothing to hide, you're not trying!"
"Artie Gold" <ar*******@austin.rr.com> wrote in message
news:42*************@individual.net... Howard wrote: "Sinisa" <si*****@inet.hr> wrote in message news:11**********************@g47g2000cwa.googlegr oups.com...
You need to ask in a Windows newsgroup. The C+ language knows nothing about windows or mouse coordinates.
...and we know nothing of the C+ language either! ;-) [yeah, I know it's a typo...just couldn't resist!]
Cheers, --ag
What...this isn't the C+ newsgroup??? Oh, crap... no wonder my programs
aren't working!
-Howard
"Howard" <al*****@hotmail.com> wrote in message
news:7e*********************@bgtnsc04-news.ops.worldnet.att.net... "Artie Gold" <ar*******@austin.rr.com> wrote in message news:42*************@individual.net... Howard wrote: "Sinisa" <si*****@inet.hr> wrote in message news:11**********************@g47g2000cwa.googlegr oups.com...
You need to ask in a Windows newsgroup. The C+ language knows nothing about windows or mouse coordinates.
...and we know nothing of the C+ language either! ;-) [yeah, I know it's a typo...just couldn't resist!]
Cheers, --ag
What...this isn't the C+ newsgroup??? Oh, crap... no wonder my programs aren't working!
I'm developing the C-squared language. A massive project
requiring much energy.
-Mike
Mike Wahler <mk******@mkwahler.net> wrote: I'm developing the C-squared language. A massive project requiring much energy.
Mike's C-squared = MC^2
Maybe you should just call it E.
--
Marcus Kwok
"Marcus Kwok" <ri******@gehennom.net> wrote in message
news:dq**********@news-int.gatech.edu... Mike Wahler <mk******@mkwahler.net> wrote: I'm developing the C-squared language. A massive project requiring much energy.
Mike's C-squared = MC^2 Maybe you should just call it E.
That was the point of my joke. (Someone else
has already created 'D').
-Mike
"W Marsh" <wa*********@gmail.com> wrote in message
news:hh********************************@4ax.com... On Tue, 10 Jan 2006 14:15:58 +0000 (UTC), ri******@gehennom.net (Marcus Kwok) wrote:
Mike Wahler <mk******@mkwahler.net> wrote: I'm developing the C-squared language. A massive project requiring much energy.
Mike's C-squared = MC^2 Maybe you should just call it E.
E already exists. http://en.wikipedia.org/wiki/E_programming_language
Ack. Working at the speed of light, and I'm
still too late. :-)
-Mike This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Brad Jones |
last post by:
<Previously posted in microsoft.public.dotnet.framework.windowsforms>
Hi all. Any suggestions here would be appreciated. Thanks for reading.
I'm primarly a C++ developer but I've been trying to...
|
by: Logan McKinley |
last post by:
I need to draw a dot where ever the user clicks (which will be on either
the form or a couple dynamically placed picture boxes). I thought the
following code should work:
//---
static public...
|
by: Bonj |
last post by:
i'm trying to create a class that will contain all the features of
instantiating a window and showing it. I've got the SetWindowLong /
GetWindowLong pair to succesfully store the 'this' pointer in...
|
by: Tom |
last post by:
I am using VB.NET to control another program. I have the program's window
hwnd; however, I need to be able to set the focus to that other programs
window so I can send it some keystrokes. I thought...
|
by: Ed Bitzer |
last post by:
One option of the messagebox object indicates it can be placed over a
selected window rather than just appearing centered on the desktop. The
function is "Overloads Public Shared Function...
|
by: Sinisa |
last post by:
Hi, first sorry on awkward english.
I'll try to illustrate my problem:
(dont know how will this look on your scrren)
...
|
by: alexandre.brisebois |
last post by:
Hi, I am using access 2003, I would like to know if there is an option
to reorganize the tables in a maner that is readable, as we can do in
sql sever 2000 or 2005.
I have been given a database...
|
by: drodrig |
last post by:
Hi.
I am trying to close/kill all processes that show visible windows on
Windows XP. So far I've created a script that uses win32gui.EnumWindows
to iterate through all windows, check for which...
|
by: kloplop321 |
last post by:
I found this code(vb only) and it does about the same thing(in vb, not vb .NET 2005)
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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: 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...
|
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...
| |