Results 1 to 2 of 2

Thread: remove border from application?

  1. #1
    Newbie Eclipse-GST's Avatar
    Join Date
    Feb 2005
    Los Angeles
    23 remove border from application?

    Hi, I am working on embedding outside applications into my project and so far I have everything working except for being able to remove the border around the application. Does anyone have any code that will work for this? I am using VB.NET VS2008.

    Thanks for the help!

  2. #2
    Variable Bitrate
    Auto Apps:loading...
    thekl0wn's Avatar
    Join Date
    Apr 2005
    PoCo, Indiana
    You can search MSDN for "Window Styles" (link) to learn more about how to set the styles of an embedded window. Here is the list of options I use when calling the SetWindowLong( ) API (link):

    Public Enum e_WindowStyle
            WS_BORDER = &H800000 ' thin border
            WS_CAPTION = &HC00000 ' has title bar
            WS_CHILD = &H40000000 ' child window style...  does not allow menu
            WS_DISABLED = &H8000000 ' disabled
            WS_HSCROLL = &H100000 ' has horizontal scroll
            WS_VSCROLL = &H200000 ' has vertical scroll
            WS_THICKFRAME = &H40000 ' thick frame
            WS_VISIBLE = &H10000000 ' initially visible
            WS_TABSTOP = &H10000 ' tabstop
        End Enum
    When you call the SetWindowLong( hWnd, nIndex, dwNewLong ) API, you will add the above values together for the look you want. They are passed as the dwNewLong value, and the nIndex is set to -16 (GWL_STYLE... aka new Window Style). I personally prefer to use WS_TABSTOP + WS_VISIBLE + WS_CHILD. WS_VISIBLE if nothing else, just to ensure it's visible. WS_TABSTOP, just to ensure tab-stopping. And WS_CHILD to get rid of the menus. However, if you need the menus, then do not add in WS_CHILD.

    Let me know if you're interested in seeing more code/objects on the topic.
    Play with it, 'til it's broke.

Similar Threads

  1. Skinning my FrontEnd in 2005
    By AxelDoomeyer in forum Software & Software Development
    Replies: 0
    Last Post: 03-23-2007, 11:14 AM
  2. Replies: 5
    Last Post: 01-20-2007, 12:55 AM
  3. Way to remove Buttons
    By Deepgear in forum Map Monkey
    Replies: 5
    Last Post: 03-03-2005, 05:17 AM
  4. Cdplayer application
    By kreyzig in forum FrodoPlayer
    Replies: 2
    Last Post: 06-19-2004, 11:51 PM
  5. How to remove winamp AVS border. - Sample VB6 code
    By Fusion-One in forum Software & Software Development
    Replies: 1
    Last Post: 10-03-2003, 08:55 PM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts