Hallo,

I can remove caption via:

invoke GetWindowLong,window,GWL_STYLE
mov ebx,WS_CAPTION
not ebx
and eax,ebx
invoke SetWindowLong,window,GWL_STYLE,eax

But how can I add caption ?

invoke GetWindowLong,window,GWL_STYLE
mov ebx,WS_CAPTION
or eax,ebx
invoke SetWindowLong,window,GWL_STYLE,eax

This one don't work...
Who can help ???

Greeting, Nordwind
Posted on 2002-01-02 08:26:19 by Nordwind64
Hi Nordwind64


Try using the SetWindowPos api. It should refresh the window.

KetilO
Posted on 2002-01-02 08:35:24 by KetilO
... and a little project to show how.

KetilO
Posted on 2002-01-02 09:19:49 by KetilO
Hi Nordwind64,

If you mean you want to change window text after you make caption window:

invoke SetWindowText,hWnd,ADDR szCapText

if that's not want you mean, ignore hehe.

best regards,

czDrillard


Put brain in gear before engaging keyboard:)
Posted on 2002-01-02 10:44:11 by czDrillard
Hallo,

thank you very much !!!


KetilO: Yes, thats the way. The window had to be refreshed...

czDillard: Caption was only an example, I want to change several window styles


Greetings, Nordwind
Posted on 2002-01-02 14:34:29 by Nordwind64