Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Titleless and topless window, how?
#2
When creating the window, just specify that it has no border style.

Normally you do this:
Code:
hWnd = CreateWindowEx( 0, _
                 szAppName, _
                         "The Hello Program", _
                          WS_OVERLAPPEDWINDOW, _
                          CW_USEDEFAULT, _
                          CW_USEDEFAULT, _
                          CW_USEDEFAULT, _
                          CW_USEDEFAULT, _
                          null, _
                          null, _
                          hInstance, _
                          null )

But, no border? No problem:
Code:
hWnd = CreateWindowEx( 0, _
                 szAppName, _
                         ByVal 0%, _
                          WS_CHILD, _
                          CW_USEDEFAULT, _
                          CW_USEDEFAULT, _
                          CW_USEDEFAULT, _
                          CW_USEDEFAULT, _
                          null, _
                          null, _
                          hInstance, _
                          null )

That is based on the Windows API documentation, I didn't test it.
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
Reply


Messages In This Thread
Titleless and topless window, how? - by Z!re - 01-28-2005, 03:06 AM
Titleless and topless window, how? - by 1000101 - 01-28-2005, 05:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)