471,627 Members | 1,508 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

Find form menu color/height

Hi,

I'm trying to find a way to find out a form menu height/color as i think
it changes depending on various Windows settings.
I need to create a form of height/color of form menu so that i can place
it over without user noticing it.

Thank you,
Andrey
Dec 17 '05 #1
1 1989
Hi MuZZy,

Welcome to MSDN newsgroup.
Regarding on the question on finding out form menu's height and color,
based on my understanding, for those system specific standard size
information, we need to query them through the

#GetSystemMetrics
http://msdn.microsoft.com/library/en...metrics.asp?fr
ame=true

and the SM_CYMENU is just the constant used to mapping the single line Menu
bar height .....

For the color info, there is one class called "SystemColors" which contains
most windows standard control colors as its constant member properties:

#SystemColors Class
http://msdn.microsoft.com/library/en...drawingsystemc
olorsclasstopic.asp?frame=true

You can have a look in those member colors.

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Date: Sat, 17 Dec 2005 17:04:57 -0500
| From: MuZZy <tn*@newsgroups.nospam>
| User-Agent: Thunderbird 1.5 (Windows/20051025)
| MIME-Version: 1.0
| Subject: Find form menu color/height
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Message-ID: <OI**************@TK2MSFTNGP15.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: h-67-102-164-42.cmbrmaor.covad.net 67.102.164.42
| Lines: 1
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.languages.csharp:372543
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hi,
|
| I'm trying to find a way to find out a form menu height/color as i think
| it changes depending on various Windows settings.
| I need to create a form of height/color of form menu so that i can place
| it over without user noticing it.
|
| Thank you,
| Andrey
|

Dec 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by RWD | last post: by
3 posts views Thread by Xwire | last post: by
4 posts views Thread by Rod Gill | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.