Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to use WINCAP functions

how to use WINCAP functions

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sarmed
    wrote on last edited by
    #1

    HI I am making a screen capturing project in visual c++. I am having problem in using the library files of WINCP. how should i implment the functions in my project. How should i start. THANK U!! I require ur help

    D 1 Reply Last reply
    0
    • S sarmed

      HI I am making a screen capturing project in visual c++. I am having problem in using the library files of WINCP. how should i implment the functions in my project. How should i start. THANK U!! I require ur help

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      sarmed wrote: I am having problem in using the library files of WINCP. I am not familar with this API. From whence does it come? In any case, why not just use a few lines of MFC code, like:

      HDC hDC = GetWindowDC(pWnd->GetSafeHwnd());
      CDC dc;
      dc.Attach(hDC);
      CDC dcMem;
      dcMem.CreateCompatibleDC(&dc);
      CRect rc;
      pWnd->GetWindowRect(&rc);
      CSize sz(rc.Width(), rc.Height());
      bm.CreateCompatibleBitmap(&dc, sz.cx, sz.cy);
      CBitmap bm;
      CBitmap *bmOld = dcMem.SelectObject(&bm);
      dcMem.BitBlt(0, 0, sz.cx, sz.cy, &dc, 0, 0, SRCCOPY);
      // use bm.m_hObject here
      dcMem.SelectObject(bmOld);
      bm.Detach();
      ReleaseDC(dc.Detach());


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups