Results 1 to 27 of 27

Thread: [RESOLVED] GetActiveWindow question for screen capture app

Threaded View

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Resolved [RESOLVED] GetActiveWindow question for screen capture app

    I want to capture the active window by using its handle:

    hnd = GetDC(GetActiveWindow)

    and then copying to a picturebox:

    BitBlt Picture1.hDC, 0, 0, width, height, hnd, 0, 0, SRCCOPY

    but I don't know how to get the parameters width and height to adjust the size of Picture1.
    Last edited by krtxmrtz; Sep 3rd, 2010 at 08:36 AM.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

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