grabwnd.h 573 B

123456789101112131415161718
  1. #ifndef NULLSOFT_GRAB_WINDOW_HEADER
  2. #define NULLSOFT_GRAB_WINDOW_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <windows.h>
  7. typedef void (CALLBACK *GRABCB)(HWND /*hwnd*/, CREATESTRUCT* /*lpcs*/, HWND* /*phwndInsertAfter*/, ULONG_PTR /*user*/);
  8. BOOL BeginGrabCreateWindow(LPCWSTR pszClassName, LPCWSTR pszTitle, HWND hwndParent, GRABCB callback, ULONG_PTR user); // you can skip fields that you don't need
  9. void EndGrabCreateWindow(void); //always call it when you done to gurantee proper shutdown
  10. #endif //NULLSOFT_GRAB_WINDOW_HEADER