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??
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??
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
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
yes it works....thank you tons..
i really appriciate it
i really appriciate it
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
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
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