Subject Re: Programmatically Adding An Event
From Mervyn Bick <invalid@invalid.invald>
Date Thu, 6 Dec 2018 17:03:01 +0200
Newsgroups dbase.getting-started

On 2018-12-06 4:46 PM, rich@autotraker.com wrote:
> Thanks,
> OK that's right, he used PeekMessage(() to test the down state of the
> mouse button rather than using GetAsyncKeyState()  to test the down
> state of the pushbutton.
> Not sure which way would have been better in this case. I'd like to
> think my way is better. LOL
> I did notice in my control that the downBitmap wasn't appearing when I
> defined that and the button didn't look like it was down.
> Possible adding UpdateWindow(oButton.hWnd) like is in Ronnie's code to
> the loop just before the sleep() will will cause that to repaint.
> Rich...

I haven't had time yet to dig too deeply but one thing I did notice was
that when I used the graphics for the pushbutons from dNavigation.dll
the two arrows didn't quite line up.  When you use the individual .png
files they line up exactly.

Mervyn.