Re: Win32lib

new topic     » goto parent     » topic index » view thread      » older message » newer message

-- 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 >----------------------------------------

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu