Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change
.elseif uMsg == WM_ERASEBKGND ; adding this helps greatly with flicker issues
mov eax, 1
ret
.elseif uMsg == WM_PAINT
invoke BeginPaint, hWin, addr ps
mov hDC, eax ; window client area DC
invoke CreateCompatibleDC, hDC
mov memDC, eax ; memory DC
invoke CreateCompatibleBitmap, hDC, ps.rcPaint.right, ps.rcPaint.bottom
mov hBmp, eax ; compatible bitmap handle
invoke SelectObject, memDC, hBmp
mov hBmp_old, eax
;; ###########################################################
;; in this example do your drawing here to memory DC (memDC) not to window DC (hDC)
;; ###########################################################
;; bitblt memory Dc to window DC
invoke BitBlt, hDC, 0, 0, ps.rcPaint.right, ps.rcPaint.bottom, memDC, 0, 0, SRCCOPY
invoke SelectObject, memDC, hBmp_old
invoke DeleteObject, hBmp
invoke DeleteDC, memDC
invoke EndPaint, hWin, addr ps
Quote from: zedd on Today at 12:04:17 PMFor starters, you have a gdi leak...No doubt. Let's not worry about that for the moment. That's not the problem.
QuoteAlso, double buffering would indeed help.I'm going to read up on it next thing.
Quote from: sinsi on Today at 06:12:00 AMMaybe 16-bit coding is not for you eitherIt used to be. Wrote a lot of .com programs back in the day. Device drivers and TSRs too.![]()
Quote from: NoCforMe on Today at 05:54:22 AMSo I take it that you take the time to research every topic here that you comment on, no matter how trivial it is, or how far out of your area of interest it is?Yes. I like to think I'm being helpful and not throwing shit against the wall to see what sticks.
Quote from: NoCforMe on Today at 05:54:22 AMSo please excuse the hell out of me if I don't jump up and spend the half hour for every goddamn thing that I happen to comment on. You know what? life's too fucking short.Touched a nerve? Calm down eh?
And if that doesn't comport well with you, then go ahead and sue me. I'm tired of being net-nannied for such stupid infractions.
Quote from: sinsi on Today at 04:30:35 AMSo I take it that you take the time to research every topic here that you comment on, no matter how trivial it is, or how far out of your area of interest it is? Do I have that right?Quote from: NoCforMe on Today at 04:01:02 AMJust because I complain about something doesn't mean I give enough of a shit to do an online search, so quit with the net-chiding, pleezeOK, so next time you complain that the MS documentation is lacking and you can't find anything we'll ignore you.
Noted.
Quote from: zedd on Today at 04:28:07 AMQuote from: NoCforMe on Today at 04:01:02 AMNice. Good resource.Um, me too. But also I am being helpful (I think) while bystandering.
Realize that I'm just a bystander making comments from the peanut gallery.
Quote from: NoCforMe on Today at 04:01:02 AMJust because I complain about something doesn't mean I give enough of a shit to do an online search, so quit with the net-chiding, pleezeOK, so next time you complain that the MS documentation is lacking and you can't find anything we'll ignore you.