From: Matt Houser on 3 Nov 2009 12:36 I am attempting to show a balloon tooltip on a property page (in a wizard) in response to an event. For example, if the user clicks "Next", but some input is invalid, I want to show a balloon tooltip showing the error. Windows 7 does this in the new network connection wizard (see attached image). I can make the tooltip appear on hovering (in non-aero wizard mode), but I cannot seem to trigger the tooltip to appear when I want it. Thanks, ....Matt
From: AliR on 3 Nov 2009 12:58 The only way I can think of at the moment is to send TTM_TRACKACTIVATE message to the CToolTipCtrl with the control that you want to display the tooltip for. AliR. "Matt Houser" <matt(a)houser.ca> wrote in message news:B562D750-37A9-40BC-AD67-CE5BC62BFABC(a)microsoft.com... >I am attempting to show a balloon tooltip on a property page (in a wizard) > in response to an event. For example, if the user clicks "Next", but some > input is invalid, I want to show a balloon tooltip showing the error. > > Windows 7 does this in the new network connection wizard (see attached > image). > > I can make the tooltip appear on hovering (in non-aero wizard mode), but I > cannot seem to trigger the tooltip to appear when I want it. > > Thanks, > ...Matt > >
From: Matt Houser on 3 Nov 2009 13:52 I found out how to do it and it does not involve CToolTipCtrl, but it only works for CEdit (which suits my needs). http://msdn.microsoft.com/en-us/magazine/cc163588.aspx You can either use CEdit::ShowBalloonTip(), or send the EM_SHOWBALLOONTIP message passing a EDITBALLOONTIP structure. And it works under PSH_AEROWIZARD so I am happy. ....Matt "Matt Houser" <matt(a)houser.ca> wrote in message news:B562D750-37A9-40BC-AD67-CE5BC62BFABC(a)microsoft.com... > I am attempting to show a balloon tooltip on a property page (in a wizard) > in response to an event. For example, if the user clicks "Next", but some > input is invalid, I want to show a balloon tooltip showing the error. > > Windows 7 does this in the new network connection wizard (see attached > image). > > I can make the tooltip appear on hovering (in non-aero wizard mode), but I > cannot seem to trigger the tooltip to appear when I want it. > > Thanks, > ...Matt > >
|
Pages: 1 Prev: CListBox items based on dialog resources. Next: send message to winApp ? |