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...
Posted on 2004-09-13 06:16:46 by ploptor
Hi,
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
Posted on 2004-09-16 10:07:22 by akyprian
:) thanx, it works.
Posted on 2004-09-22 03:22:29 by ploptor