Win32Lib: Set Window Maximized / getWindowSize Questions

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

Hi all,

In Win32Lib:

How do you set the window to Maximized when it opens.
I have tried using WS_MAXIMIZE in the paramters but it doesn't seem to work -


constant
frmMain = create(Window, APP_NAME, 0, Default,Default,555,350,
                 or_all({WS_SYSMENU, WS_DLGFRAME,
                         WS_MINIMIZEBOX, WS_MAXIMIZEBOX,
                         WS_MAXIMIZE}))


Second question:

How do I then get the WindowSize.  As a test I used -


    rect = getWindowSize( frmMain )
    printf(1, "x=%d, y=%d\n", {rect[1], rect[2]})


and ended up with x=-3, y=-3.

Any responce will be very appreciated.


Ray Smith

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

Search



Quick Links

User menu

Not signed in.

Misc Menu