Hiya, I'm working on developing an extension for Reaper. I'm trying to use the LICE functions to draw onto a dialog.
My problem is that the initial area of the dialog remains the dialog color instead of being drawn upon. It's a little difficult to describe, so here's a screenshot--
https://i.imgur.com/2VQ4J.png
Once I resize the window, I can see the stuff that wdl drew.
I'm basing my window off of sws_wnd so I can use less winapi as I'm not too familiar with it (I'm primarily a *nix developer).
My update function looks like this
{
//ShowConsoleMsg("updating\n");
RECT r;
GetClientRect(m_hwnd,&r);
PAINTSTRUCT ps;
HDC dc = BeginPaint(m_hwnd, &ps);
LICE_Clear(framebuffer, LICE_RGBA(255,255,255,0));
LICE_FillRect(framebuffer,0, 0, 10, framebuffer->getHeight(), LICE_RGBA(255,255,255,0), 1.0f, LICE_BLIT_MODE_COPY);
LICE_DrawText(framebuffer,1,1,"test",LICE_RGBA(255 ,255,255,0),1,LICE_BLIT_MODE_COPY);
BitBlt(dc,r.left,r.top,r.right,r.bottom,framebuffe r->getDC(),0,0,SRCCOPY);
EndPaint(m_hwnd, &ps);
}
Thanks in advance.