Article View: borland.public.cppbuilder.nativeapi
Article #4043Re: File menu
From: Remy Lebeau (TeamB)
Date: Wed, 22 Mar 2006 18:35
Date: Wed, 22 Mar 2006 18:35
26 lines
1703 bytes
1703 bytes
"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:
<44219938$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4420fb13$1@newsgroups.borland.com> <44211431@newsgroups.borland.com> <442164e7@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4420fb13$1@newsgroups.borland.com> <44211431@newsgroups.borland.com> <442164e7@newsgroups.borland.com> Subject: Re: File menu Date: Wed, 22 Mar 2006 10:35:09 -0800 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <44219938$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1143052600 68.69.17.41 (22 Mar 2006 10:36:40 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail