Article View: borland.public.cppbuilder.nativeapi
Article #4046Re: File menu
From: mark
Date: Thu, 23 Mar 2006 10:38
Date: Thu, 23 Mar 2006 10:38
37 lines
1938 bytes
1938 bytes
thanks Remy I'll try it
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:44219938$1@newsgroups.borland.com...
>
> "mark" <r@net.org> wrote in message
news:442164e7@newsgroups.borland.com...
>
> > I have TMenu on my form like above, and all I want to do is to align
that
> on
> > the right side of my form, not on the left side. Don't know how to say
it
> > more specific.
>
> You need to use the Get/SetMenuItemInfo() to enable the MFT_RIGHTJUSTIFY
> flag for your item(s). For example:
>
> MENUITEMINFO ItemInfo = {sizeof(MENUITEMINFO), 0};
> char buffer[64] = {0};
>
> ItemInfo.fMask = MIIM_TYPE;
> ItemInfo.dwTypeData = buffer;
> ItemInfo.cch = sizeof(buffer);
>
> GetMenuItemInfo(MainMenu1->Handle, Help1->Command, FALSE, &ItemInfo);
> ItemInfo.fType |= MFT_RIGHTJUSTIFY;
>
> SetMenuItemInfo(MainMenu1->Handle, Help1->Command, FALSE, &ItemInfo);
>
>
>
> Gambit
>
>
Technical Details
Message-ID:
<44227ab4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4420fb13$1@newsgroups.borland.com> <44211431@newsgroups.borland.com> <442164e7@newsgroups.borland.com> <44219938$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fa04f81a5baea09c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "mark" <r@net.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <4420fb13$1@newsgroups.borland.com> <44211431@newsgroups.borland.com> <442164e7@newsgroups.borland.com> <44219938$1@newsgroups.borland.com> Subject: Re: File menu Date: Thu, 23 Mar 2006 11:38:42 +0100 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 NNTP-Posting-Host: 213.202.126.18 Message-ID: <44227ab4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1143110324 213.202.126.18 (23 Mar 2006 02:38:44 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail