Can anybody help me out with the DrawCaption function? I've tried to call it under WM_PAINT, but it won't work. WM_NCPAINT won't work either, this one simply messes up my entire client area (dunno why).
I'm sure, some time ago there was an example on this board. Anyhow, I couldn't find it :(.
I'd be glad if someone supplied some sample code, maybe even with an example for DrawIcon and moving the window in the same context.
Thx in advance...
I'm sure, some time ago there was an example on this board. Anyhow, I couldn't find it :(.
I'd be glad if someone supplied some sample code, maybe even with an example for DrawIcon and moving the window in the same context.
Thx in advance...
Hi,
A very basic example
In WM_PAINT
I hope it helps,
Antonis
A very basic example
In WM_PAINT
Invoke BeginPaint,hWnd,ADDR ps
MOV hDC,EAX
Invoke GetClientRect,hWnd,Addr Rect
Invoke DrawCaption,hWnd,hDC,ADDR Rect,DC_SMALLCAP OR DC_GRADIENT OR DC_TEXT or DC_ACTIVE
Invoke EndPaint,hWnd,ADDR ps
I hope it helps,
Antonis
:) thanx, it works.