Relative Content

Tag Archive for c++gdi

GDI Erasing Residual Text with Transparent Background

I’m creating a GDI window that contains a background image, along with some static text (with transparent background) on top of the image. I want the text to display different messages at different times.
To get the transparent background working, I’ve intercepted the WM_CTLCOLORSTATIC message in the WndProc to set the background color to transparent and return NULL_BRUSH like so

When I rescale the image, or minimize the window, the image created with Gdiplus is gone

I am trying to recreate a 1996 program, that barely anyone knows. It is called Identibacter Interactus. I am using C++ and Gdiplus to recreate it, and it was originally created with Macromedia Director 5. Currently, I am trying to get the title page, and the about page with the credits to work. The issue is I get the image to display, and if I minimize the window, or rescale it, the image goes away.

How does GDI+ print picture adapt to paper size

I am using GDI+ to print an image to A4-size paper, but the printed image gets cropped. I’ve looked through the DrawImage function documentation, but I can’t seem to achieve perfect printing on every device. Are there any parameters that I might have overlooked?

GDI flicker when animating bitmap

I am trying to remove flicker from my bitmap animation in GDI. It is a rainbow animation. The animation animates smoothly but the bitmap buttons flicker.