Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Table in CRichEditCtrl Pin
Ravi Bhavnani25-Apr-05 17:30
professionalRavi Bhavnani25-Apr-05 17:30 
GeneralRe: Table in CRichEditCtrl Pin
Carc25-Apr-05 17:41
Carc25-Apr-05 17:41 
GeneralRe: Table in CRichEditCtrl Pin
Ryan Binns25-Apr-05 18:50
Ryan Binns25-Apr-05 18:50 
GeneralPlaying audio Pin
Anonymous25-Apr-05 15:30
Anonymous25-Apr-05 15:30 
GeneralRe: Playing audio Pin
Ravi Bhavnani25-Apr-05 16:57
professionalRavi Bhavnani25-Apr-05 16:57 
GeneralRe: Cstring comparision problem Pin
Ravi Bhavnani25-Apr-05 16:55
professionalRavi Bhavnani25-Apr-05 16:55 
Questionhow to use WINCAP functions Pin
sarmed25-Apr-05 11:35
sarmed25-Apr-05 11:35 
AnswerRe: how to use WINCAP functions Pin
David Crow26-Apr-05 4:02
David Crow26-Apr-05 4:02 
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


GeneralModeless PropertySheet in Modal PropertySheet Pin
Anonymous25-Apr-05 11:03
Anonymous25-Apr-05 11:03 
GeneralFor big and fast programs Pin
Luckyware25-Apr-05 10:34
Luckyware25-Apr-05 10:34 
GeneralRe: For big and fast programs Pin
alex.barylski25-Apr-05 15:05
alex.barylski25-Apr-05 15:05 
GeneralRe: For big and fast programs Pin
Michael Dunn25-Apr-05 16:28
sitebuilderMichael Dunn25-Apr-05 16:28 
GeneralRe: For big and fast programs Pin
ThatsAlok25-Apr-05 19:56
ThatsAlok25-Apr-05 19:56 
GeneralRe: For big and fast programs Pin
toxcct26-Apr-05 0:35
toxcct26-Apr-05 0:35 
GeneralRe: For big and fast programs Pin
Luckyware14-Jul-05 9:23
Luckyware14-Jul-05 9:23 
GeneralWhy can't find the file "streams.h" Pin
yeetins25-Apr-05 6:50
yeetins25-Apr-05 6:50 
GeneralRe: Why can't find the file "streams.h" Pin
David Crow25-Apr-05 7:10
David Crow25-Apr-05 7:10 
GeneralRe: Why can't find the file "streams.h" Pin
yeetins25-Apr-05 20:18
yeetins25-Apr-05 20:18 
GeneralRe: Why can't find the file "streams.h" Pin
Axter25-Apr-05 7:18
professionalAxter25-Apr-05 7:18 
GeneralRe: Why can't find the file "streams.h" Pin
yeetins25-Apr-05 20:22
yeetins25-Apr-05 20:22 
GeneralRe: Why can't find the file "streams.h" Pin
Bob X25-Apr-05 7:39
Bob X25-Apr-05 7:39 
GeneralRe: Why can't find the file "streams.h" Pin
yeetins25-Apr-05 20:32
yeetins25-Apr-05 20:32 
GeneralRe: Why can't find the file "streams.h" Pin
Bob X26-Apr-05 7:18
Bob X26-Apr-05 7:18 
GeneralRe: Why can't find the file "streams.h" Pin
Ryan Binns25-Apr-05 18:55
Ryan Binns25-Apr-05 18:55 
GeneralRe: Why can't find the file "streams.h" Pin
yeetins25-Apr-05 20:42
yeetins25-Apr-05 20:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.