- Q: DestroyIcon and DestroyCursor
- Posted by Jakob Bieling on September 27th, 2003
Hi,
I am using the dbghelp library functions to obtain the name of a called
function, for example DestroyIcon or DestroyCursor. It works fine, except
that for DestroyIcon it tells me I called DestroyCursor. After investigating
my code a bit I found that those two calls indeed reach the same address. So
my guess is that the Windows API treats cursors and icons the same. Is there
a way to still know whether I called DestroyIcon or DestroyCursor?
thx
--
jb
(replace y with x if you want to reply by e-mail)
- Posted by Martijn on September 27th, 2003
Jakob Bieling wrote:
Did you do a stack trace? Maybe it can tell you by which name it was called
(or at least _where_ it was called from, which should suffice).
On another note: I cheched the DLL (USER32.DLL) and sure enough, they had
the same entry point. How is this accomplished using C?
Thanks,
--
Martijn
http://www.sereneconcepts.nl
- Posted by Jakob Bieling on September 27th, 2003
"Martijn" <subscription-NOSPAM-101@hotNOFILTERmail.com> wrote in message
news:3f754be5$0$58716$e4fe514c@news.xs4all.nl...
No stack trace, but I know the exact source file and line where the call
was made. But still, it is annoying when you see 'DestroyCursor' even though
there is 'DestroyIcon'.
thx
--
jb
(replace y with x if you want to reply by e-mail)
- Posted by Tim Robinson on September 27th, 2003
"Jakob Bieling" <netsurf@gmy.net> wrote in message
news:bl3knn$9tt$06$1@news.t-online.com...
Can't be helped. Icons and cursors are the same thing.
--
Tim Robinson (MVP, Windows SDK)
http://www.themobius.co.uk/