From dda3d41d5c724c74b7ec0fa13e4cd6ffe96acff8 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 26 Feb 2009 11:45:25 +0000 Subject: [PATCH] 2009-02-26 12:44 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * source/rtl/gtwvt/gtwvt.c ! Fixed HB_GTI_CLOSABLE when set before window initialization. --- harbour/ChangeLog | 4 ++++ harbour/source/rtl/gtwvt/gtwvt.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index f4fa272649..f78d9815af 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-02-26 12:44 UTC+0100 Viktor Szakats (harbour.01 syenar hu) + * source/rtl/gtwvt/gtwvt.c + ! Fixed HB_GTI_CLOSABLE when set before window initialization. + 2009-02-26 12:16 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * config/rules.cf * config/win/global.cf diff --git a/harbour/source/rtl/gtwvt/gtwvt.c b/harbour/source/rtl/gtwvt/gtwvt.c index 7a8412d620..611f357710 100644 --- a/harbour/source/rtl/gtwvt/gtwvt.c +++ b/harbour/source/rtl/gtwvt/gtwvt.c @@ -1864,14 +1864,17 @@ static BOOL hb_gt_wvt_CreateConsoleWindow( PHB_GTWVT pWVT ) hb_xfree( pFileName ); } - /* Create "Mark" prompt in SysMenu to allow console type copy operation */ { HMENU hSysMenu = GetSystemMenu( pWVT->hWnd, FALSE ); if( hSysMenu ) { + /* Create "Mark" prompt in SysMenu to allow console type copy operation */ LPTSTR buffer = HB_TCHAR_CONVTO( pWVT->pszSelectCopy ); AppendMenu( hSysMenu, MF_STRING, SYS_EV_MARK, buffer ); HB_TCHAR_FREE( buffer ); + + if( ! pWVT->bClosable ) + EnableMenuItem( hSysMenu, SC_CLOSE, MF_BYCOMMAND | MF_GRAYED ); } }