Hi,

How do you know that:

MB_OK is 0h in hex value or
VK_ESCAPE is 1Bh

is there a reference out there that points me on how to determine that this one is 1h or 0040h...

I hope i explained it clearly !!! gulp!

Thanks
Posted on 2002-01-01 12:46:59 by stryker
Hi umberg6007

The file windows.inc (found in c:\masm32\include) contains most of the constants used in windows.

KetilO
Posted on 2002-01-01 13:52:36 by KetilO
I know but how do "they" know that its 0h for MB_OK.

MB_OK could be 1h or 2h or 3h...How did they know the exact hex value.

Thanks
Posted on 2002-01-01 15:11:45 by stryker

I know but how do "they" know that its 0h for MB_OK.

MB_OK could be 1h or 2h or 3h...How did they know the exact hex value.

Thanks


look into windows.inc:


MB_OK equ 0h


EDIT:
Think you mean M$ with "they".... they made the rules :)
Posted on 2002-01-01 15:16:45 by bazik
Cause, I was looking into the platform sdk and I found out that
MB_CANCELTRYCONTINUE is one of the MessageBox styles and I look into the WINDOWS.inc and did not find the style.

I'm looking for a reference or steps, if such exists, to translate this into a hex value.
Posted on 2002-01-01 15:53:23 by stryker
You would have to search the C header files in the PSDK.
...and you find in winuser.h:
#if(WINVER >= 0x0500)

#define MB_CANCELTRYCONTINUE 0x00000006L
#endif /* WINVER >= 0x0500 */
Posted on 2002-01-01 15:59:20 by bitRAKE
Thanks, I never knew that....

:)
Posted on 2002-01-01 16:42:33 by stryker
Remember, WINDOWS.INC is a "work in progress". It dosn't contain EVERY structure and equate used in Windows, but it does have the most common.

This is especially true for things that were introduced with newer versions of the OS, like XP and ME. If you plan on using this stuff, you may need to dig it out of the .H files, for now at least. :)
Posted on 2002-01-01 17:11:59 by S/390
The C header files are the definitive source for constant values.

When a C++ user #includes windows.h, several .h files get compiled.

In addition to the headers that come with a C++ compiler, there are also sets of DDK headers which include constants and functions that aren't defined in the compiler-supplied headers.
Posted on 2002-01-02 13:43:30 by tank