I try to add a tooltip to the outlookbar so that
when mouse moves over the different button in the outlook bar
A tool tip will appear.
in the OnCreate() of outlook bar
I add an message handler OnNotifyEx to process TTN_NEEDTEXT.
The problem is the handler isn't triggered when I move
my mouse in the outlook bar so I can't change the tooltip.
There is a tooltip (First Record) appears when I move my
mouse over the tooltip.
When using the Outbar control for a program i wanted a way to know if the user is hovering over a item in one
of the folders. To solve this i came up with a very simple solution (probable not the best one).
In GfxOutBarCtrl.h add:
#define NM_OB_ITEMHOVER 6
And then in GfxOutBarCtrl.cpp at the end of HighlightItem add:
Then in your program add to the WM_OUTBAR_NOTIFY handler:
// Cast lParam to get item which mouse is hovering over
// Do your stuff here
I hope this is of help to people. It is probably not the best way to
do it but it works for me.
First I'd like to sys this control is great !!
I've encountered some flickering, then I saw in another article at
CodeGuru what to do.
In the PreCreateWindow(CREATESTRUCT& cs) method of the CMainFrame window
hosting the control just add the single line: cs.style |= WS_CLIPCHILDREN;
thats it, now the control has no flickering.
Very great work! The bar looks great.
But how can I use different imagelist in different folders?
I have meet one bug and I change it: when my folder is empty, that is has no items. But the down arrow is
here, if click on the down arrow, a big error come out. I add an initialization statement: l=0; then all
Since may have written to me reporting trouble when trying to execute a modal dialog box from within the
OnOutbarNotify function, here's the trick;
- add ReleaseCapture(); before opening your dialog
The trouble is related to how the bar control capture the mouse to get the hoover look; if the control has
capture (as is always the case in this function), no modal will be correctly executed until you release the
mouse capture, with the function above.