RE: Win32Lib not showing WS_EX_WINDOWEDGE

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

Raudaun,

I copied your example and my window looks more "normal" than yours.  My 
guess is that you are running it with an interpreter that has a 
subsystem version number of 3.1 (instead of 4.0).  Try it using the 2.4 
alpha release from rapideuphoria.com and you'll see what I mean.

Your other alternative is to search the mailing list for Rob's little 
utility that will set the subsystem version of your exw.exe interpreter 
to 4.0. (search for "subsystem version" by "Robert Craig")

-- Brian

Raudaun Long wrote:
> 
> Derek Parnell wrote:
> > ----- Original Message -----
> > From: "Raudaun Long" <LilFreak02_ at hotmail.com>
> > To: "EUforum" <EUforum at topica.com>
> > Sent: Friday, March 21, 2003 3:05 PM
> > Subject: Win32Lib not showing WS_EX_WINDOWEDGE
> > 
> > 
> > > any idea why the following code would produce the window shown on
> > > http://loth.hypermart.net/window_ss.jpg? The WS_EX_WINDOWEDGE syle is
> > > not added to the window.
> > >
> > > --------------------------------------------------------------------------
> > > 
> > > 
> > ---------------
> > >
> > > include Win32Lib.ew
> > >
> > > global constant TheForm = createEx(Window,"This is TheForm", 0,
> > > Default,Default,
> > > 318,238,
> > >
> > {WS_OVERLAPPED,WS_CLIPSIBLINGS,WS_CLIPCHILDREN,WS_CAPTION,WS_SYSMENU,WS_VISI
> > 
> > 
> > BLE},
> > >
> > >
> > {WS_EX_LEFT,WS_EX_LTRREADING,WS_EX_RIGHTSCROLLBAR,WS_EX_WINDOWEDGE,WS_EX_APP
> > 
> > 
> > WINDOW})
> > >
> > >
> > > WinMain(TheForm,Normal)
> > 
> > The combination of window style flags here is uncommon. To have both
> > CLIPSIBLINGS and CLIPCHILDREN on a top-level window is probable counter
> > productive. The WS_OVERLAPPED is for documentation only as its value is
> > zero, as is WS_EX_LEFT, WX_EX_LTRREADING, and WX_EX_RIGHTSCROLLBAR. So,
> > reducing this to a simpler form, we get ...
> > 
> > {WS_CLIPCHILDREN,WS_CAPTION,WS_SYSMENU,WS_VISIBLE},
> > {WS_EX_WINDOWEDGE,WS_EX_APPWINDOW})
> > 
> > This means that the only difference between this and the default 
> > settings is
> > that it doesn't have WS_THICKFRAME, WS_MINIMIZEBOX and WS_MAXIMIZEBOX.
> > 
> > Now the WS_EX_WINDOWEDGE mans that the border is raised rather than 
> > sunken.
> > You will find that it is raised. Try using WS_EX_CLIENTEDGE instead to 
> > see a
> > sunken edge.
> > 
> > The WS_THICKFRAME gives is a resizeable frame.
> > 
> > ----------------
> > cheers,
> > Derek Parnell
> > 
> > 
> I understand what you are saying as I've been programming for windows 
> for a while, but as i said in my first reply, this window was generated 
> by an app i'm working on the pulls the styles off of existing windows on 
> 
> the screen and outputs the window and controls into a win32lib Eu 
> program. I did not set these styles myself. My question isn't how they 
> work or how to get a specific frame but rather why the code doesn't 
> produce the same window as the original even though the styles set in 
> the source code are exactly the same. They all showed up in Spy++ except 
> 
> WS_EX_WINDOWEDGE
> 
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu