Hi Ketilo
I've attached a small demo project.
In the dialog Editor the edit box has a flat look
But when you run it the sunken style is there - cant get rid of that damn style :(
Also in the border property for the edit control I think you have a style "boarder" - should it not be border?
BTW Thanks for the great editor
Taff
I've attached a small demo project.
In the dialog Editor the edit box has a flat look
But when you run it the sunken style is there - cant get rid of that damn style :(
Also in the border property for the edit control I think you have a style "boarder" - should it not be border?
BTW Thanks for the great editor
Taff
Hi taff
Windows does not allow you to create a flat edit control on a dialog.
You could try:
KetilO
Windows does not allow you to create a flat edit control on a dialog.
You could try:
mov eax,uMsg
.if eax==WM_INITDIALOG
push hWin
pop hWnd
invoke GetDlgItem,hWin,1001
push ebx
mov ebx,eax
invoke SetWindowLong,ebx,GWL_EXSTYLE,0
invoke SetWindowLong,ebx,GWL_STYLE,WS_CHILD or WS_VISIBLE or WS_BORDER
pop ebx
KetilO
Hi Ketlio
Thanks for the reply and sorry about replying in this forum but ...
I have added the code you provided and it seems to clear the sunken look but on the left and top sides there seems to be a resident shadow.
When I use an api spy program to view the styles they seem to be correct but when I apply the styles that are already shown (using the api spy) it fixes it - Now I'm confused :confused:
I'm wondering whether I'll have to subclass it and draw it myself.
Thanks again
Taff
Thanks for the reply and sorry about replying in this forum but ...
I have added the code you provided and it seems to clear the sunken look but on the left and top sides there seems to be a resident shadow.
When I use an api spy program to view the styles they seem to be correct but when I apply the styles that are already shown (using the api spy) it fixes it - Now I'm confused :confused:
I'm wondering whether I'll have to subclass it and draw it myself.
Thanks again
Taff
The easiest will probably be to use CreateWindowEx to create the control with the styles you want.
KetilO
KetilO