Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Redraw item in OWNERDRAW menu

0 views
Skip to first unread message

Trong Q. Ha

unread,
Aug 5, 2002, 5:09:22 PM8/5/02
to
Hi,
Is there any way to redraw the arrow of a submenu in an OWNERDRAW menuitem?
Nomatter how I draw the menuitem which is a submenu, the system still draw
its arrow. So if anyone could provide any direction or hints then that would
be great.

Thanks,

Brandon Ha


Jim Barry

unread,
Aug 5, 2002, 5:58:11 PM8/5/02
to
Trong Q. Ha wrote:
> Is there any way to redraw the arrow of a submenu in
> an OWNERDRAW menuitem?

I guess you mean is there any way to stop the submenu arrow being drawn?

> Nomatter how I draw the menuitem which is a submenu,
> the system still draw its arrow. So if anyone could provide
> any direction or hints then that would be great.

This is an old Windows bug which I suppose cannot be fixed for compatibility
reasons. The workaround I use is to call ExcludeClipRect just before
returning from WM_DRAWITEM.

- Jim

Trong Q. Ha

unread,
Aug 5, 2002, 7:07:13 PM8/5/02
to
Thanks a lot Jim! it really works with ExcludeClipRect.... and there is
another question... Do you know how we could get the handle to the chevron
of a toolbar so we can redraw it? I handle the CUSTOMDRAW Notification but I
got problem to check where the chevron shows up and if it shows up then how
can we redraw it?

Thanks Jim,

Brandon Ha

"Jim Barry" <j...@mvps.org> wrote in message
news:ep#NSsMPCHA.2572@tkmsftngp08...

0 new messages