Nov 7th, 2002, 03:47 AM
#1
Windows Messages - Values
I have subclassed a control and am trying to work out what the messages mean...is there anyway to back convert???
Woka
Nov 7th, 2002, 04:01 AM
#2
Retired VBF Adm1nistrator
I'd say MerrionComputing is the man to talk to
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Nov 7th, 2002, 04:03 AM
#3
Frenzied Member
Use the API viewer from AllAPI Guide's http://www.allapi.net .
"Brothers, you asked for it."
...Francisco Domingo Carlos Andres Sebastian D'Anconia
Nov 7th, 2002, 04:05 AM
#4
Fanatic Member
What do you mean by back convert?
Their is a list of constants they can be compared to...
Leather Face is comin...
MCSD
Nov 7th, 2002, 04:05 AM
#5
Eg: Ok, for a treeview, I want to know what the Msg 4110 is???
ALLAPI does not back convert, you find theconstant then it gives you the value, not the other way round...
Woka
Nov 7th, 2002, 04:06 AM
#6
[Edit] Took out the constant declarations
Um, just find the hex value for the message passed, and go looksie
Nov 7th, 2002, 04:10 AM
#7
Nope, it's none of them
One of the many I am looking for is 8270 = &H204E...?
Woka
Nov 7th, 2002, 04:12 AM
#8
Frenzied Member
"Brothers, you asked for it."
...Francisco Domingo Carlos Andres Sebastian D'Anconia
Nov 7th, 2002, 04:17 AM
#9
Fanatic Member
Has that solved your problem wokawidget?
Leather Face is comin...
MCSD
Nov 7th, 2002, 04:18 AM
#10
errrrr....no
Woka
Nov 7th, 2002, 04:21 AM
#11
Fanatic Member
Ok, you need to convert the value in question into hex...
The easiest way to do this is open the windows calculator, type in the decimal value, open the scientific section and click the hex button..
Take this value and find it in the list of constants that axion supplied...
if you can't tell me and ill try to find it for you.
Leather Face is comin...
MCSD
Nov 7th, 2002, 04:22 AM
#12
Basically what I am trying to do is to subclass a treeview, trap when a label edit is started, get the handle to the label edit textbox, find out it's dimensions and replace it with another control...
Woka
Nov 7th, 2002, 04:23 AM
#13
Try doing a google search on &H204E...
Woka
Nov 7th, 2002, 04:24 AM
#14
Fanatic Member
But the listview has a before label edit event, why dont you just use this..
Leather Face is comin...
MCSD
Nov 7th, 2002, 04:30 AM
#15
I am trying to keep this thread simple as not to confuse anyone, maybe I shouldn't
Trust me, I need to subclass it...I also want to do other things as well...with small animals...Oooops, wrong web site...
Woka
Nov 7th, 2002, 04:36 AM
#16
Frenzied Member
Just wondering
Could U not code a quick parser on the Win32API.txt and spit out the corresponding "WM_****" for a given Hex or Long value ?
"Brothers, you asked for it."
...Francisco Domingo Carlos Andres Sebastian D'Anconia
Nov 7th, 2002, 04:38 AM
#17
Nov 7th, 2002, 04:41 AM
#18
Frenzied Member
Nov 7th, 2002, 04:41 AM
#19
Now know why I didn't do it like that
VB's API view is crap and doesn't have much in it, and AllAPI's viewer is saved in it's own format
Woka
Nov 7th, 2002, 04:43 AM
#20
Frenzied Member
Ok.......
Do U know how a Type Library is formatted?
"Brothers, you asked for it."
...Francisco Domingo Carlos Andres Sebastian D'Anconia
Nov 7th, 2002, 04:44 AM
#21
Nov 7th, 2002, 04:47 AM
#22
Frenzied Member
U know win32.tlb? It has everything neatly "enum"ed. All functions, subs, constants, etc...
"Brothers, you asked for it."
...Francisco Domingo Carlos Andres Sebastian D'Anconia
Nov 7th, 2002, 04:47 AM
#23
Frenzied Member
Note that messages above WM_USER are application defined messages...so won't have an associated WM_ constant.
Currently WM_USER = &H400
Nov 7th, 2002, 08:45 AM
#24
Frenzied Member
Quick and dirty utility attached....
Attached Files
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width