From: AliR. on 21 Feb 2007 21:16 I have never used IPictEditor. But if you say it is a static type control make sure you set the notify flag of the static control. (SS_NOTIFY). As I said I'm not very familiar with IPictEditor. If the SS_NOTIFY doesn't do anything, then you might want to try this. Create a single CToolTipCtrl object, and add all of your contorls to it using the AddTool method, with the LPSTR_TEXTCALLBACK text pointer. Overwrite the PreTranslateMessage method of your dialog can call the CToolTipCtrl objects RelayEvent. Then try to catch the TTN_NEEDTEXT message in the dialog box class. AliR. On Feb 21, 12:00 pm, "Mark Foley" <fol...(a)meftechno.com> wrote: > This will work, but only for Controls like a button. > I am using images via IPictEditor. OnToolTipNotify() doesn't seem to get > called for Static type 'controls'. > > I have seen several somewhat cumbersome solutions ranging from Subclassing > to a bunch of code added to > PreTranslateMessage(). Neither seems very attractive. > > Is there a simpler solution? > > Thank you! >
First
|
Prev
|
Pages: 1 2 Prev: DISPLAY BITMAP, GIF, JPG in MFC Next: converting icon to bitmap in memory |