This is not a very big deal, but I can't help asking:
Is there a good reason for the ChildWindowFromPoint NOT using the syntax described in MSDN or api help files?
HWND ChildWindowFromPoint(HWND hWndParent, POINT Point);
I wasted quite some hours only to find out that the PB version wanted
ChildWindowFromPoint_ (window, x, y)
I thought I was supposed to be able to use all api calls without keeping track of some calls using a non standard syntax.
It could be that I am just plain stupid, but is there a reason for the syntax differences? Any plans to fix it? Or am I just mistaken?
/Storck
Why not standard ChildWindowFromPoint syntax?
-
Froggerprogger
- Enthusiast

- Posts: 423
- Joined: Fri Apr 25, 2003 5:22 pm
- Contact:
The MSDN says POINT to be requested, and with it all the seperated values itself.
Many other functions do use a pointer to a struct, such as GetCursorPos_(). The parameter is indicated as LPPOINT then, the LP* stands for 'long pointer' I think.
So just read the MSDN carefully if it is a pointer or not.
(anyway - the MSDN is really misunderstandable in this point)
Happy new year!
Many other functions do use a pointer to a struct, such as GetCursorPos_(). The parameter is indicated as LPPOINT then, the LP* stands for 'long pointer' I think.
So just read the MSDN carefully if it is a pointer or not.
(anyway - the MSDN is really misunderstandable in this point)
Happy new year!
%1>>1+1*1/1-1!1|1&1<<$1=1
- tinman
- PureBasic Expert

- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
- Contact:
Perhaps that's something Fred could add to PB - the ability to pass a structured variable to procedures and it passes a copy of the entire structure (like the API in this case and C).
It would also be pretty neat if you could pass pointers and mark them as read only within the procedure.
[/b]
It would also be pretty neat if you could pass pointers and mark them as read only within the procedure.
[/b]
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
(WinXPhSP3 PB5.20b14)
