hey all. i have a problem, when coding a program, i usually use a res editor, but this time i tried diffrent.

i waz coding a edit control into my program, everything worked out, but i run my program and it has a black border, and not the sunken type border

i thought you do the border with WM_BORDER but is that not the case?? heres what i got in the code

invoke CreateWindowEx, NULL,
ADDR EditClass, addr EditNom1,
WS_CHILD or WS_VISIBLE or WS_BORDER or WS_VSCROLL or ES_MULTILINE or ES_WANTRETURN or WS_EX_DLGMODALFRAME or ES_CENTER,
5,30,250,140,hWnd,IDC_EDIT1,
hInstance,NULL
mov hEdit1, eax

it will show up for me, but no border
can you help??
Posted on 2001-07-26 12:51:30 by sToNeRiFiK
Change the first parameter from NULL to WS_EX_CLIENTEDGE and that will give you your sunken effect. You can also use WS_EX_STATICEDGE for a different look.

invoke CreateWindowEx, WS_EX_CLIENTEDGE,
ADDR EditClass, addr EditNom1,
WS_CHILD or WS_VISIBLE or WS_BORDER or WS_VSCROLL or ES_MULTILINE or ES_WANTRETURN or WS_EX_DLGMODALFRAME or ES_CENTER,
5,30,250,140,hWnd,IDC_EDIT1,
hInstance,NULL
mov hEdit1, eax
Posted on 2001-07-26 13:03:55 by dl?
yes it works....thank you tons..
i really appriciate it
Posted on 2001-07-26 13:08:14 by sToNeRiFiK
All WS_EX_ styles belong in the first argument of CreateWindowEx. So that should be
invoke CreateWindowEx, WS_EX_CLIENTEDGE or WS_EX_DLGMODALFRAME, 

ADDR EditClass, addr EditNom1,
WS_CHILD or WS_VISIBLE or WS_BORDER or WS_VSCROLL or ES_MULTILINE or ES_WANTRETURN or ES_CENTER,
5,30,250,140,hWnd,IDC_EDIT1,
hInstance,NULL
mov hEdit1, eax
Posted on 2001-07-26 14:45:36 by tank
As well, to help you learn... I have found that in my 12mb .hlp file that has all the API's documented (win32api.hlp), all the "WS_EX_ " styles are listed in definition under CreateWindowEx and the normal "WS_" styles are listed under CreateWindow... (( Just so you know were to look in the future))

If you dont have this help file, i have it uploaded on my web-site in the Tool's page... NaN's Web Page...

:)
NaN
Posted on 2001-07-26 22:43:39 by NaN