How can I hide the title bar from a window frame ? (2)
for about 10 day ago I asked the question ‘How can I hide the title bar from a window frame’. The answer was to try to manipulate the HTML code for the according (custom) Workplace Frame.
I tried this but unfortunately without success. When changing different properties in the green area below one can see the according effects but there’s no property to hide the title bar. I even tried to insert ‘new’ properties, e.g. ‘titlebar=no’ but since I do not know about the possible properties that’s pretty hopeless! Is there anybody to know the complete list of properties for afwFrame?
I could also imagine the solution to my problem can be solved by adding a property in the according view class:
But which one would this be? Is there anybody to know what properties are possible here?
So I’m still looking for a solution. Maybe I ran to a wrong direction so far – if you have another idea please let me know.
Thanks for answering my questions
here is screenshot,
the previous question link @ http://www402.abbext.com/How-I-hide-title-bar-window-frame-q30239.aspx
@ ingo, you can always browse questions from same user by clicking on his name.
@ uli, you can just open any question and copy link from the browser that works if you want to reference any thread from AKS.
How do you create this window? If it is form inside your DCS program it isn't possible to hide the title bar. And, if possible, how do you want to close that window?
This goes deep into the windows system. In the "CreateWindow" function you could specify the windwos style with e.g. WS:CAPTION, WS_DLGFRAME
But to use that you have to code your own application.
"After the window has been created, these styles cannot be modified, except as noted."
You may fix the window size:
e.g. in VB6
Private hWndApp As Long 'Window-Handle der Fensters
Public Sub ResizeApplicationWindow()
' Resizing des Fensters
Dim lngResult As Long 'Rückgabe der PostMessage
Dim lngPos As Long 'TopMost oder nicht
Dim lngFlags As Long 'Flags
On Error GoTo errHandler
If hWndApp = 0 Then
Err.Raise 9999, "Es konnte kein Fenster-Handle ermittelt werden."
If Me.AppIsRunning Then
'Verhindert "Schatten" des Fensters
lngResult = SendMessage(hWndApp, WM_PAINT, 0&, 0&)
'TopMost oder nicht einstellen
If bTopMost Then
lngPos = HWND_BOTTOM
lngPos = HWND_NOTOPMOST
lngPos = 1
If rectWnd.Right * rectWnd.Bottom = 0 Then
lngFlags = SWP_NOMOVE Or SWP_NOSIZE
lngResult = SetWindowPos(hWndApp, lngPos, rectWnd.Left / 15, rectWnd.Top / 15, (rectWnd.Right - rectWnd.Left) / 15, (rectWnd.Bottom - rectWnd.Top) / 15, lngFlags)
lngResult = RedrawWindow(hWndApp, rectWnd, 0&, RDW_UPDATENOW Or RDW_ALLCHILDREN)