Author Topic: Gdiplus HELP  (Read 155 times)

PushPop

  • Regular Member
  • *
  • Posts: 11
Gdiplus HELP
« on: January 22, 2018, 06:10:42 AM »
Hi guys
I need help, I'm using gidiplus, everything works, but after a few minutes it does not refresh the display anymore.
I include the sources some one can help me.
Thank you and greetings

LordAdef

  • Member
  • ***
  • Posts: 379
Re: Gdiplus HELP
« Reply #1 on: January 22, 2018, 06:20:48 AM »
Hey PushPop,

There is a file missing, I canĀ“t build it

fearless

  • Member
  • ***
  • Posts: 300
    • LetTheLightIn
Re: Gdiplus HELP
« Reply #2 on: January 22, 2018, 07:46:28 AM »
Could try InvalidateRect, hWin, NULL, TRUE followed by UpdateWindow, hWin after the Update_Timer call in the WM_TIMER event message. See if that forces it to redraw. Or even just UpdateWindow after the RedrawWindow call.
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

www.LetTheLight.in  My Github  Twitter

mabdelouahab

  • Member
  • ***
  • Posts: 361
Re: Gdiplus HELP
« Reply #3 on: January 22, 2018, 08:17:51 AM »
Maybe:

    Invoke  DeleteObject, hPEN_S
    Invoke  DeleteObject, hPEN_M
    Invoke  DeleteObject, hPEN_H
    Invoke  DeleteObject, hPEN_H    hPEN_C

And

   invoke  CreateSolidBrush,00A6FFFFh
    Mov hNullBrush, Eax
    invoke crt_printf,addr cfm_,eax
    Invoke SelectObject, hDC, hNullBrush
    mov OldBrush,eax
    Invoke FillRect, hDC, Addr hRECT, hNullBrush
     invoke DeleteObject,hNullBrush

I tried it and it works well

PushPop

  • Regular Member
  • *
  • Posts: 11
Re: Gdiplus HELP
« Reply #4 on: January 22, 2018, 08:30:06 AM »
Hi guys
I need help, I'm using gidiplus, everything works, but after a few minutes it does not refresh the display anymore.
I include the sources some one can help me.
Thank you and greetings
P.S. I have mistaken the file to send
I humbly apologize