XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

C# - Drawing bitmap to screen

Last post 04-26-2008 6:30 PM by dudeldi. 2 replies.
  • 04-26-2008 6:10 PM

    C# - Drawing bitmap to screen

    Hi all,

    I want to build some kind of popup window, but without using a new form (not something like class Popup : Form), because forms produce side effects. Instead I wanted to draw this popup window directly to screen by using a sprite. It should be similar to some kind of website popup including a bitmap, some text, maybe a button.
    Another possibility is GDI+ and catching the WM_PAINT message, but I dont' know which way is better.

    Any ideas?

    If this DirectDraw approach is dilettante let me know :-)



  • 04-26-2008 6:16 PM In reply to

    Re: C# - Drawing bitmap to screen

    What "side effects" of the form are you trying to avoid? That will help us suggest alternatives (or solutions) for you.

    Nick Gravelyn -- Microsoft XNA MVP
    Blog | XNA Wiki | FX-izer | EasyZip | Current Adventures | Next-Gen
  • 04-26-2008 6:30 PM In reply to

    Re: C# - Drawing bitmap to screen

    If you open a non-fullscreen form while the main form is "maximized" because you want to hide the title bar, then the main form's title bar becomes visible while the non-fullscreen form is open.

    Because of this side effect or bug I wanted to build something very low-level.

    Here is a common example for popup windows based on
    non-fullscreen forms:
    http://www.christec.co.nz/blog/archives/134

    But those popups don't work correctly if the parent or main form is set to
    "maximized".


    By the way, I use Windows Mobile 6 for PPC.

Page 1 of 1 (3 items) Previous Next