Results 1 to 9 of 9

Thread: color in behind form...

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Talking

    Anybody know an API that simulates what happens when the Shut Down window opens? you know, how the screen behind the window gets darkened?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    This might be what you are after

  3. #3
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    Well, here's one way to do it:

    Make a maximized form with no borders or Title bar. Next, use the PaintDesktop function to paing the desktop image (OR use capturescreen). Then, paint a black-white pattern on the form and Piesto!

    Oh, and I'm not going to experiment on this anymore. The last time I did it I used EnableWindow and disabled my system.


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  4. #4

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    okay, I don't seem to have a built-in PaintDesktop function, so I assume its an API, maybe i'm wrong...

    could you give an example?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    It is an API...
    Code:
    Public Declare Function PaintDesktop Lib "user32" Alias "PaintDesktop" (ByVal hdc As Long) As Long

  6. #6

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    and usage??
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    No idea

  8. #8
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    Usage

    PaintDesktop Me.hdc


    However, that paints ONLY the desktop. It's better to use the GetHDC(0&) to Get the hdc of the screen and use Bitblt to bitblt the contents of the screen to the form.


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  9. #9

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    thanks microbasic, just the desktop is good enought
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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