January 27, 2020, 08:55:01 pm

## News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........

## Constants values

Started by Andy, October 10, 2018, 07:20:18 am

0 Members and 1 Guest are viewing this topic.

#### Andy

##### October 10, 2018, 07:20:18 am
Nearly ready to release the new constants search program but I was just wondering if I had this:

WS_WIDGET who's value was WM_USER + 200 (where WM_USER is say 400 Hex), what is the "Widgets" value?

Are we adding 200 hex to 400 hex, so the value is 600 hex?

Thanks,
Andy.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

#### LarryMc

##### October 10, 2018, 08:38:10 am #1
you're adding 200 decimal to 400 hex
LarryMc
Larry McCaughn
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

#### Andy

##### October 10, 2018, 09:33:43 am #2
Thanks Larry,

So the answer would be 200 (decimal or C8 - hex) + 400 (hex) = 4C8 (hex).

Thanks for that.

Andy.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

#### billhsln

##### October 10, 2018, 10:08:30 am #3
Just in case, here is a HEX Calculator site:

https://www.calculator.net/hex-calculator.html

Bill
When all else fails, get a bigger hammer.

#### Andy

##### October 10, 2018, 12:52:43 pm #4
Thanks Bill,

Will check it out.

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.