Re: OwnerDrawn Menu Items

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Andy Becker (x_at_x.com)
Date: 08/04/04


Date: Wed, 4 Aug 2004 17:40:07 -0500


"Dino Buljubasic" <dino@noplacelikehome.com> wrote in message
news:81o2h0ht5grc5cgddkul71oatshvvg51to@4ax.com...
> Hi,
>
> My application has a menu with some of the menu items that have their
> own menu items. By default, VB will add a black right rectangle when
> a menu items has its own menu items.
>
> However, when my menu items have thier property OwnerDrawn set to
> true I have to draw menu items and text inside each menu items by
> myself. All that works fine, but how do I get the black right
> triangle drawn as well?
>
> Thank you

Have a look at the ControlPaint class, lots of goodies in there.
DrawMenuGlyph should be of particular interest to you.

Best Regards,

Andy



Relevant Pages

  • Re: synchronize content
    ... >> best regards and thanks in advance! ... >>> site is on the same server, otherwise you will need to access the WSS ... >>> Mike Walsh, Helsinki, Finland ...
    (microsoft.public.sharepoint.windowsservices)
  • Nagios problem
    ... Many Thanks Andy, ... Did you install from a package or compile from source? ... > Best Regards, ... ZESPRI does not make any representations as to the accuracy of the information ...
    (SunManagers)
  • Thank you for all your help
    ... Andy ... > the CallURL boards definetely support Hold, Transfer and Conference. ... > Best regards, ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Base distinguished name (DN)
    ... > Well in order to update data you will need to have a ssl connection to ... >> Regards, ... >> Andy. ... >>> Paul Bergson MCT, MCSE, MCSA, CNE, CNA, CCA ...
    (microsoft.public.windows.server.active_directory)
  • Re: CSNW cannot work
    ... I can see the CSNW icon in control panel, however, it can ... > However in regmon, I do see some buffer overflow and not found status. ... > "Andy" wrote in message ... >> Regards, Anson ...
    (microsoft.public.windowsxp.embedded)