Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Creating borderless windows...

Creating borderless windows...

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++visual-studiowpf
5 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CMFC6 0VS NETUser
    wrote on last edited by
    #1

    I am trying to create a borderless window that will just be display text of statis and will close by itself if statis is positive. The window will only display buttons to handle error and will have another chance to close app. And no taskbar button. I have VS.NET but using VC++ 6.0 code(Win32API only). I have tried calling CreateWindow() with many different window styles but some work but not like I wanted and others build stops at the end of building and doesn't switch over to debug mode. Note: if the backgroud was white and I was to run it windows should only paint white over the current screen. Any help. Real World Coding:      POP& BuyAPop(Money ADollar){...};

    M J 2 Replies Last reply
    0
    • C CMFC6 0VS NETUser

      I am trying to create a borderless window that will just be display text of statis and will close by itself if statis is positive. The window will only display buttons to handle error and will have another chance to close app. And no taskbar button. I have VS.NET but using VC++ 6.0 code(Win32API only). I have tried calling CreateWindow() with many different window styles but some work but not like I wanted and others build stops at the end of building and doesn't switch over to debug mode. Note: if the backgroud was white and I was to run it windows should only paint white over the current screen. Any help. Real World Coding:      POP& BuyAPop(Money ADollar){...};

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Omit the border styles (WS_BORDER, WS_THICKFRAME, etc.) and add the extended style WS_EX_TOOLWINDOW. --Mike-- Actual sign at the laundromat I go to: "No tinting or dying" Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines! My really out-of-date homepage Big fan of Alyson Hannigan and Jamie Salé.

      C 2 Replies Last reply
      0
      • C CMFC6 0VS NETUser

        I am trying to create a borderless window that will just be display text of statis and will close by itself if statis is positive. The window will only display buttons to handle error and will have another chance to close app. And no taskbar button. I have VS.NET but using VC++ 6.0 code(Win32API only). I have tried calling CreateWindow() with many different window styles but some work but not like I wanted and others build stops at the end of building and doesn't switch over to debug mode. Note: if the backgroud was white and I was to run it windows should only paint white over the current screen. Any help. Real World Coding:      POP& BuyAPop(Money ADollar){...};

        J Offline
        J Offline
        jack Mesic
        wrote on last edited by
        #3

        Use ModifyStyle(..) Or ModifyStyleEx(..) to change the window style. Regards http://www.ucancode.net/

        1 Reply Last reply
        0
        • M Michael Dunn

          Omit the border styles (WS_BORDER, WS_THICKFRAME, etc.) and add the extended style WS_EX_TOOLWINDOW. --Mike-- Actual sign at the laundromat I go to: "No tinting or dying" Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines! My really out-of-date homepage Big fan of Alyson Hannigan and Jamie Salé.

          C Offline
          C Offline
          CMFC6 0VS NETUser
          wrote on last edited by
          #4

          Thank for reply... Your reply help up to here... I changed the style param for CreateWindow() to 0. I added SetWindowLong(...,GWL_STYLE, 0); and SetWindowLong(...,GWL_EXSTYLE, 0); All that has change is I can drag window, curved ends XP titlebar and all borders are gone are gone(or transparent). The only thing is left is the titlebar is still painted and when Debuging and VS.NET is maximized and program is below it Two thing I can do... 1) I DbClick VS.NET caption and some of my program show but VS.NET UI is not erase from non-client area. 2) I click my program taskbar button and only the client area of appears on top(non-client area seems transparent). This is what I wanted along. Also I still cant get rid of that taskbar button. Any more help... Thanks... Real World Coding:      POP& BuyAPop(Money ADollar){...};

          1 Reply Last reply
          0
          • M Michael Dunn

            Omit the border styles (WS_BORDER, WS_THICKFRAME, etc.) and add the extended style WS_EX_TOOLWINDOW. --Mike-- Actual sign at the laundromat I go to: "No tinting or dying" Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines! My really out-of-date homepage Big fan of Alyson Hannigan and Jamie Salé.

            C Offline
            C Offline
            CMFC6 0VS NETUser
            wrote on last edited by
            #5

            Would it be easier to create a hidden parent window and just have the child borderless window display. Real World Coding:      POP& BuyAPop(Money ADollar){...};

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups