PDA

Click to See Complete Forum and Search --> : Maximized without controlbox = Overlapping taskbar ?


eL_NiNo
Nov 6th, 2002, 11:13 AM
Hi !

I'm creating a component to replace the titlebar of vb app (so far so good), but there is something i must clarify.
In order to replace the titlebar of a form, i removed .controlbox and used


Call SetWindowLong(objForm.hwnd, GWL_STYLE, GetWindowLong(objForm.hwnd, GWL_STYLE) Xor WS_CAPTION)


to get it display right in the taskbar. However, doing so, when i maximize the form, it still can be moved and is overlapping the taskbar.

I tried with API calls and .WindowState to maximize and both give same result.

Any idea of a form property i could set with an API call to solve this nasty bug ?

***
Advancement :
***

It does not move once maximized, using


WS_SYSMENU Or WS_CAPTION


It still overlap the taskbar which is not good at all.

***
Or does anyone knows a way of hiding the titlebar to replace it with a custom one and keep the same behavior of a maximized form ?

Thanks again, help much appreciated
Help, please :eek: