Issue with tooltips for custom drawn image buttons
-
Hi All, Am facing an unusual issue with some bitmaps that i`m loading dynamically. The situation is that i`ve got a button on which I draw a bitmap dynamically depending on whether the mouse has hovered over it, if it was previously clicked etc... A tooltip is associated with this button and has ShowAlways = true. I also set ToolTpActive = false and then true due to this fix suggested for a framework bug (as given at http://209.85.229.132/search?q=cache:nj6GSkFDwuIJ:stackoverflow.com/questions/559707/c-tooltip-will-not-re-appear-after-first-use+tooltip%2Bbug%2Bactive%2Bc%23&cd=3&hl=en&ct=clnk&gl=in ) Now the issue is that sometimes when i`m working with other applications the bitmaps get laoded partially and are clipped from the top (maybe upper 25% of it). My button size is the same and i debugged to see if the bitmap gets loaded correctly, and it does. I`ve seen this happening only with buttons that have a tooltip, and this button class is used in 3 separate processes (running simult.) and all of them get clipped one after another. I tried to comment out the SetToolTipText and ShowAlways parts of the code but it still occurs. Has anyone come across such an issue earlier, that too happening across processes ? Any help is most appreciated. Thanks in advance.