CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Geneva, Switzerland Working@CERN
    Posts
    40

    Hide the window, and still draw.

    I have made a splash screen by getting the desktop DC and I am drawing it right on it. But I can't draw if I am not showing the window. So it has to be minimized or maximized to be able to draw.

    So there is two options as I can see it (unless anyone have a better idea that is):

    - To take away the blue thingy on the top (not sure what it is called, made it hard to search this forum for it), and then make the window endlessly small. I know this is possible because it is pretty easy to do it VB.


    - To minimize it, and then make it not show in the task bar (or what it is called down there), I know this is possible too, done it in VB. But yet again, I have no idea how to do that in C++.


    Any ideas on how to do that. Or any other good ideas on the topic.
    Thanks
    ØØ

  2. #2
    Join Date
    Oct 2002
    Location
    Austria
    Posts
    1,284

    Re: Hide the window, and still draw.

    That's just an idea and I don't know if it would work but you could try to move the window offscreen with MoveWindow with a location of say x= -2000 and y = -2000.
    This way it would not even show up in the taskbar either.
    K.
    //edit: use SetWindowPos instead.
    Last edited by ZuK; January 27th, 2005 at 12:07 PM.

  3. #3
    Join Date
    Oct 2003
    Location
    Geneva, Switzerland Working@CERN
    Posts
    40

    Re: Hide the window, and still draw.

    Yeah, I was thinking about that too. Kind of silly way to do it though, but I guess it will work. and actualy I don't need to move it at all, can just fire it up there when I make the window.


    Will have a go and test.




    Øyvind Østlund
    Last edited by NoteMe; April 27th, 2006 at 08:02 AM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured