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-us/sysinfo/base/getsystemmetrics.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-us/cpref/html/frlrfsystemdrawingsystemc
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 <
[email protected]>
| 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: <
[email protected]>
| 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!TK2MSFTNGP15.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
|