diff options
author | ericm <ericm@noemail.net> | 2000-05-16 17:57:31 (GMT) |
---|---|---|
committer | ericm <ericm@noemail.net> | 2000-05-16 17:57:31 (GMT) |
commit | e7b13274eef463557cc8783d89d66081f0575b08 (patch) | |
tree | 034b8394a01af37532f099931d0291df8deda1aa /win | |
parent | 8a8280b61f84e6cfcb7565f148981e23236ea866 (diff) | |
download | tk-e7b13274eef463557cc8783d89d66081f0575b08.zip tk-e7b13274eef463557cc8783d89d66081f0575b08.tar.gz tk-e7b13274eef463557cc8783d89d66081f0575b08.tar.bz2 |
* win/tkWinMenu.c (ReconfigureWindowsMenu): Added code to add the
MF_SEPARATOR bit for SEPARATOR_ENTRY menu items. This causes
separator entries on the system menu to be drawn correctly [Bug: 5451].
FossilOrigin-Name: 909f18beae2f9d5b2705b332bc2186eb4ecbf28d
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinMenu.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c index 61784c6..de622f9 100644 --- a/win/tkWinMenu.c +++ b/win/tkWinMenu.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinMenu.c,v 1.9 2000/05/10 00:09:40 ericm Exp $ + * RCS: @(#) $Id: tkWinMenu.c,v 1.10 2000/05/16 17:57:32 ericm Exp $ */ #define OEMRESOURCE @@ -579,7 +579,7 @@ ReconfigureWindowsMenu( lpNewItem = (LPCTSTR) mePtr; flags |= MF_OWNERDRAW; } - + /* * Set enabling and disabling correctly. */ @@ -598,6 +598,18 @@ ReconfigureWindowsMenu( flags |= MF_CHECKED; } + /* + * Set the SEPARATOR bit for separator entries. This bit is not + * used by our internal drawing functions, but it is used by the + * system when drawing the system menu (we do not draw the system menu + * ourselves). If this bit is not set, separator entries on the system + * menu will not be drawn correctly. + */ + + if (mePtr->type == SEPARATOR_ENTRY) { + flags |= MF_SEPARATOR; + } + if (mePtr->columnBreak) { flags |= MF_MENUBREAK; } |