Hi everyone,
I need very urgent a solution for this problem:
I use many dialogs in my application. To realize ownerdrawn buttons I set their transparency flag with WM_SetHasTrans(hBtn).
Then I copy a memory device with a drawn JPEG image into the buttons area. This happens in the WM_PAINT of the dialog callback function.
The WM_PAINT in the buttons callback function is empty.
Display All
And this is the annoying problem: With every click/release the button area flickers with the transparent color, before the image is seen.
To use bitmap buttons instead is no option because there is not enough space for many button bitmaps in the flash memory.
Is there any other way to show "image" buttons without flickering?
Or is it possible to avoid the seen click/release state of buttons ?
Thanks in advance
JuergenL
I need very urgent a solution for this problem:
I use many dialogs in my application. To realize ownerdrawn buttons I set their transparency flag with WM_SetHasTrans(hBtn).
Then I copy a memory device with a drawn JPEG image into the buttons area. This happens in the WM_PAINT of the dialog callback function.
The WM_PAINT in the buttons callback function is empty.
C Source Code
And this is the annoying problem: With every click/release the button area flickers with the transparent color, before the image is seen.
To use bitmap buttons instead is no option because there is not enough space for many button bitmaps in the flash memory.
Is there any other way to show "image" buttons without flickering?
Or is it possible to avoid the seen click/release state of buttons ?
Thanks in advance
JuergenL