CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Eri523

Search: Search took 0.05 seconds.

  1. Replies
    18
    Views
    9,235

    Re: Capture a window

    I really welcome it when delevelopers have this sort of low-level experience. It tends to sharpen their sense to understand things. Of course it's a long way to go from there to high-level concepts...
  2. Replies
    18
    Views
    9,235

    Re: Capture a window

    Well, needlessly dynamically allocating an object just because some API demands a pointer to it instead of simply using the & operaror to take the address of an automatic (i.e. local) or class member...
  3. Replies
    18
    Views
    9,235

    Re: Capture a window

    Ok, the last post in this thread is already one month ago and the thread is [RESOLVED], but I think it's worth noting that this leaks memory:



    The dynamically allocated rect is never released....
  4. Replies
    18
    Views
    9,235

    Re: Capture a window

    Actually, I didn't perceive it that way. Chances are I'm my own sharpest critic, and I always suspect I may have done something silly unless I'm entirely convinced of the opposite. ;)



    Yeah,...
  5. Replies
    18
    Views
    9,235

    Re: Capture a window

    Yo, thanks! :cool:



    I think it's well possible to automate that, but it would require hooking the subject window's messages, which is rather advanced even in a pure native environment.


    ...
  6. Replies
    18
    Views
    9,235

    Re: Capture a window

    Ok, so here we go... :D (The new demo project supercedes the one from post #6, so I removed that.)

    The new version features a tool tip displaying some information about the window targetted by the...
  7. Replies
    18
    Views
    9,235

    Re: Capture a window

    You're welcome! :)



    My choice of color was based on the assumption that few apps have windows containing large red areas, so the crosshair would almost always remain clearly visible.



    Do...
  8. Replies
    18
    Views
    9,235

    Re: Capture a window

    Where did you include <windows.h> and what was the error message you got? I did that quite a few times im C++/CLI projects and got it to work each time.



    That's not really an option I think...
  9. Replies
    18
    Views
    9,235

    Re: Capture a window

    To determine the window under the mouse cursor, WindowFromPoint() may be a good place to start researching. Once you got the handle of the subject window, GetWindowRect() will retrieve its screen...
  10. Replies
    18
    Views
    9,235

    Re: Capture a window

    Like any Windows Forms control, Form features the DrawToBitmap() method that does just what the name suggests and may be useful for you. However, I have never used it on an entire form so I'm not...
Results 1 to 10 of 10





Click Here to Expand Forum to Full Width

Featured