I've having some trouble with windows messages, as in which ones to intercept
and call for an invalidaterect.
With my plugin visible I can pop up a message box and position it over my
plugin briefly. When I remove the box, the plugin beneath it is a bunch of
gobbelty gook.
If I then select/deselect or navigate through the plugin's area if refreshes
normally.
I did notice that when I intercepted the WM_WINDOWPOSCHANGED message, this
would not happen. Unfortunately, it would redraw me any time I navigated
around on the screen.
I've got a bug somewhere in my redraw code for my icon and text that's
causing the screen to flash even though I'm using double buffering. So this
particular issue is troublesome. I'm sure I can figure out the problem with
my double buffering but I'm a little confused on the windows message
interception thing.
Does anyone have any advice on how to tell when my plugin has been uncovered
so I can tell it to repaint itself properly? Or could it perhaps something in
the way I'm painting my background/watermark? I can give more details as
needed. I'm just not sure what to show first.
I think once I get this thing fully functional I'm going to rip out the
company specific stuff in it and post it as a full example of how to handle
today plugins. Every tutorial and sample code i've been finding gives me only
a little bit. Bits and pieces and then I have to continue digging for each
new case that comes up ( like with the plugin being covered by a message box
). Hopefully I can help save somebody a few steps.
Thanks,
Ed