The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: dsouza123 on July 13, 2008, 10:24:04 PM

Title: Constant name for 0x5001000 ?
Post by: dsouza123 on July 13, 2008, 10:24:04 PM
Does anyone know the constant name for the resource style 0x50010000 ?
Are there other ones without names ?

examples

#define BS_DEFPUSHBUTTON    0x00000001L
#define SS_BITMAP           0x0000000EL
#define ES_LEFT             0x0000L
#define SS_LEFT             0x00000000L
#define WS_CHILD            0x40000000L


so

#define ?????????????????   0x50010000L



CONTROL "", 1,    BUTTON,           BS_DEFPUSHBUTTON | WS_CHILD, 0,   0,   0,  0
CONTROL "", 259,  EDIT,             ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 8,  52, 200, 18
CONTROL "", 260,  BUTTON,           BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 196,  56,  30, 18
CONTROL "", 261,  "SysIPAddress32", 0x50010000, 120,  54,  92, 18
CONTROL "", 264,  "RichEdit",       ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 9,  72, 124, 134
Title: Re: Constant name for 0x5001000 ?
Post by: jdoe on July 13, 2008, 11:18:45 PM
Quote from: dsouza123 on July 13, 2008, 10:24:04 PM
Does anyone know the constant name for the resource style 0x50010000 ?
Are there other ones without names ?


It is a combination of styles. Maybe WS_CHILD | WS_VISIBLE | WS_TABSTOP.

Sorry I can't help more.

Title: Re: Constant name for 0x5001000 ?
Post by: donkey on July 13, 2008, 11:37:35 PM
jdoe is right...

#define WS_VISIBLE  0x10000000
#define WS_CHILD  0x40000000
#define WS_TABSTOP  0x00010000

WS_VISIBLE OR WS_CHILD OR WS_TABSTOP = 0x50010000


As far as I know ther are no style constants without names, though there could possibly be an undocumented one or two. However, combinations of styles, with very few exceptions are unnamed.
Title: Re: Constant name for 0x5001000 ?
Post by: dsouza123 on July 14, 2008, 01:03:20 AM
Thank you jdoe and donkey

That makes perfect sense now that you have explained it.