Originally posted by: HONGWEI ZHANG
I want to know how can I make all the outbar to be dockable like the toolbars?
Thanks in advance!
Originally posted by: Carsten Pedersen
If another application is active the item and folder highlighting will still occure in your OutlookBar app. I added the line
if (AfxGetMainWnd()!=GetActiveWindow())
return;
in the OnMouseMove function. This seems to solve the problem. cpede
Originally posted by: Jin-Hee Lee
How can I resize OutBar ?
myjini
ReplyOriginally posted by: chongqing xiao
Any suggestion?
Thanks a lot!
ChongQing
Hi,
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.
I add
m_pToolTip=new CToolTip();
m_pToolTip->Create(this);
m_pToolTip->AddTool(this);
in the OnCreate() of outlook bar
then
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.
Originally posted by: Xiaoliang Chen
Great control!
But anyone could be kind to help me disable one item? If I clike on a item, I want to disable it,how
could do this?
Thanks.
Originally posted by: Park Hyung Wook
I want to use 256 color item for the outbar control.
So I use 256 color bitmap, but it displayed 16 color image.
Is it my mistake?
Originally posted by: Richard Case
And then in GfxOutBarCtrl.cpp at the end of HighlightItem add:
I hope this is of help to people. It is probably not the best way to
Cheers
Richard
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
GetOwner()->SendMessage(WM_OUTBAR_NOTIFY,NB_OB_ITEMHOVER,index);
Then in your program add to the WM_OUTBAR_NOTIFY handler:
case NM_OB_ITEMHOVER
// Cast lParam to get item which mouse is hovering over
{
// Do your stuff here
}
return 0;
do it but it works for me.
Originally posted by: Martin Ruff
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.
Originally posted by: Xiaoliang Chen
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 are ok.
ReplyOriginally posted by: Iuri
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.
Enjoy!
Reply