1. Win32lib
- Posted by Jess Harpur <jach at blueyonder.co.uk> May 10, 2001
- 523 views
Hello, I'm usually just lurking but here's my contribution for what it's worth. -- Software ID: win32lib -- Version: 0.55.1 19/Dec/2000 Line 1620 contains an error which results in SIZEOF_MSG being two bytes too few. Consequently acquire_mem(0, SIZEOF_MSG) grabs less memory than required and calls to GetMessage write past the end of the allocated memory with unpredictable results. If this has been fixed in a later version of the library then "good on yer" ;) -- Type MSG msgHWnd = allot( Long ), msgMessage = allot( Integer ), *** Should be allot( UInt )*** msgWParam = allot( Long ), msgLParam = allot( Long ), msgTime = allot( DWord ), msgPtX = allot( Long ), msgPtY = allot( Long ), SIZEOF_MSG = allotted_size(), HTH. Jess
2. Re: Win32lib
- Posted by Derek Parnell <ddparnell at bigpond.com> May 10, 2001
- 498 views
Thanks for this bug fix. You too Matt. There is a similar set of minor bugs in many other structures too, in that they use Long instead of UInt and thus return a signed 31-bit value instead of an unsigned 32-bit value. I've fixed the fetch() and store() routines to treat UInt and Long correctly too. ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower." ----- Original Message ----- From: "Jess Harpur" <jach at blueyonder.co.uk> To: "EUforum" <EUforum at topica.com> Sent: Friday, May 11, 2001 4:24 AM Subject: Win32lib > > > > Hello, > > I'm usually just lurking but here's my contribution for what it's worth. > > -- Software ID: win32lib > -- Version: 0.55.1 19/Dec/2000 > > Line 1620 contains an error which results in SIZEOF_MSG being two bytes > too few. Consequently acquire_mem(0, SIZEOF_MSG) grabs less memory than > required and calls to GetMessage write past the end of the allocated > memory with unpredictable results. If this has been fixed in a later > version of the library then "good on yer" ;) > > -- Type MSG > msgHWnd = allot( Long ), > msgMessage = allot( Integer ), *** Should be allot( UInt )*** > msgWParam = allot( Long ), > msgLParam = allot( Long ), > msgTime = allot( DWord ), > msgPtX = allot( Long ), > msgPtY = allot( Long ), > SIZEOF_MSG = allotted_size(), > > HTH. > > Jess > > > > > > >
3. Win32lib
- Posted by Grape_ Vine_ <g__vine at HOTMAIL.COM> Oct 25, 1999
- 501 views
Is there a way to disable the maximize/restore button on the system menu? I want to force my window to me maximized or minimized but it wont stay that way unless i enable just the minimize button but then the close button is gone and i dont see any way to enable it( i looked in win32lib and the win32 help) J Reeves Grape Vine ICQ# 13728824 ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
4. Re: Win32lib
- Posted by Bernie Ryan <bwryan at PCOM.NET> Oct 25, 1999
- 479 views
-- I think this is what you want to do using the win32 library -- Bernie -----------------------------< cut >---------------------------------------- include win32lib.ew constant SimpleWin = create( Window, "Simple Window", 0, Default, Default, 400, 400, 0 ) atom style -- get the present style style = c_func(xGetWindowLong, {getHandle( SimpleWin ), GWL_STYLE} ) -- disable MAXIMIZE button style = and_bits(style,not_bits(WS_MAXIMIZEBOX)) -- disable MINIMIZE button style = and_bits(style,not_bits(WS_MINIMIZEBOX)) -- This disables sizing and stops the user from sizing the window style = and_bits(style,not_bits(WS_THICKFRAME)) -- set the new style style = c_func(xSetWindowLong,{getHandle( SimpleWin ), GWL_STYLE, style}) WinMain( SimpleWin, Normal ) -----------------------------< cut >----------------------------------------
5. Re: Win32lib
- Posted by Grape_ Vine_ <g__vine at HOTMAIL.COM> Oct 25, 1999
- 490 views
That is exactly what i am looking for...THANX!!!! J Reeves Grape Vine ICQ# 13728824 >From: Bernie Ryan <bwryan at PCOM.NET> >Reply-To: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU> >To: EUPHORIA at LISTSERV.MUOHIO.EDU >Subject: Re: Win32lib >Date: Mon, 25 Oct 1999 16:31:48 -0400 > >-- I think this is what you want to do using the win32 library >-- Bernie > >-----------------------------< cut > >---------------------------------------- > >include win32lib.ew > >constant SimpleWin = > create( Window, "Simple Window", 0, Default, Default, 400, 400, 0 ) > >atom style > > -- get the present style > style = c_func(xGetWindowLong, {getHandle( SimpleWin ), GWL_STYLE} ) > > -- disable MAXIMIZE button > style = and_bits(style,not_bits(WS_MAXIMIZEBOX)) > > -- disable MINIMIZE button > style = and_bits(style,not_bits(WS_MINIMIZEBOX)) > > -- This disables sizing and stops the user from sizing the window > style = and_bits(style,not_bits(WS_THICKFRAME)) > > -- set the new style > style = c_func(xSetWindowLong,{getHandle( SimpleWin ), GWL_STYLE, >style}) > >WinMain( SimpleWin, Normal ) > >-----------------------------< cut > >---------------------------------------- ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com