Thought I might post this on wine-devel to see if anyone has any suggestions. I figured I would update on what I've found. As far as I can tell most applications have their toolbars receive WM_PAINT messages with wParam == 0. We call BeginPaint and retreive the update rectangle. For some reason applications using Borland Builder C++(I think) do not receive WM_PAINT with 0 but rather with the HDC of the window we should drawn in. In addition to this, in the case where wParam != 0, GetUpdateRect returns a rectangle of (0,0,0,0). Both toolbars are created with the same flags. All flags inside of RDW_Update/BeginPaint16 and RDW_Refresh(I think, not sure on this last one's name) are identical. Everything looks to be about the same for both the wParam ==0 and !=0 cases. Heres's my question: Does anyone know off of the top of their head what determines whether WM_PAINT receives a wParam of 0 or the HDC? I found a SendMessage16() call inside of a RDW_ function(sorry, I forget the name) in /windows/painting.c but I'm not sure if this is where the message originates. I figured someone might know from experence what determines the wParam. ------------ Chris Morgan
