Click here to Skip to main content
15,908,674 members
Home / Discussions / Graphics
   

Graphics

 
QuestionManaged DirectX AudioVideoPlayBack Problems Pin
sibinsunny12-Feb-09 23:36
sibinsunny12-Feb-09 23:36 
AnswerRe: Managed DirectX AudioVideoPlayBack Problems [modified] Pin
miljanrajkovic5-May-09 0:26
miljanrajkovic5-May-09 0:26 
Generalerer Pin
KCMANDAL12-Feb-09 0:09
KCMANDAL12-Feb-09 0:09 
Generalvery important Pin
KCMANDAL11-Feb-09 22:35
KCMANDAL11-Feb-09 22:35 
JokeRe: very important Pin
Nishad S11-Feb-09 23:21
Nishad S11-Feb-09 23:21 
GeneralRe: very important Pin
Smithers-Jones13-Feb-09 0:15
Smithers-Jones13-Feb-09 0:15 
GeneralRe: very important Pin
Dave Kreskowiak13-Feb-09 5:12
mveDave Kreskowiak13-Feb-09 5:12 
Questionrefresh device context? Pin
Member 19061757-Feb-09 10:53
Member 19061757-Feb-09 10:53 
I try to display the content of client area of window A on the window B.

void SimpleDlg::OnButton3()
{

   HWND hWnd=NULL;	

  hWnd=::FindWindow("l2UnrealWWindowsViewportWindow", NULL);//handle to window A	
  HDC hdcLin=::GetDC(hWnd);//DC to window A	
  HDC hdcWin=::GetDC(this->m_hWnd);//DC to window B	

  ::BitBlt(hdcWin,                     
              0,0,                     
              300, 300,                    
              hdcLin,                     
              600,400,                     
                SRCCOPY);     

   ::ReleaseDC(hWnd, hdcLin); 
  ::ReleaseDC(this->m_hWnd, hdcWin)
}



this code looks fine, but it works only once. when a pircture is changed on the window A and then function OnButton3 is run again, previous content of window A will be displayed. DC of window A is updated only when i close window A and open a new one. do i have to refresh somehow DC of window A in order to have always the most recent context?

thank you in advance.
radek
AnswerRe: refresh device context? Pin
plexted1-Nov-09 2:35
plexted1-Nov-09 2:35 
QuestionConvert PCL to image Pin
Cosmin Ciuraru29-Jan-09 6:16
Cosmin Ciuraru29-Jan-09 6:16 
QuestionTranslate vertext in shader Pin
Member 445625228-Jan-09 19:49
Member 445625228-Jan-09 19:49 
Questioncan not run DirectX sdk samples Pin
chandrapal27-Jan-09 21:52
chandrapal27-Jan-09 21:52 
QuestionScaling Rotated Points Pin
Richard Blythe19-Jan-09 6:12
Richard Blythe19-Jan-09 6:12 
GeneralRe: Scaling Rotated Points Pin
Luc Pattyn19-Jan-09 6:29
sitebuilderLuc Pattyn19-Jan-09 6:29 
GeneralRe: Scaling Rotated Points Pin
Richard Blythe19-Jan-09 6:41
Richard Blythe19-Jan-09 6:41 
GeneralRe: Scaling Rotated Points Pin
Luc Pattyn19-Jan-09 6:50
sitebuilderLuc Pattyn19-Jan-09 6:50 
GeneralRe: Scaling Rotated Points Pin
Mark Churchill28-Jan-09 19:59
Mark Churchill28-Jan-09 19:59 
AnswerRe: Scaling Rotated Points Pin
Dan20-Jan-09 21:53
Dan20-Jan-09 21:53 
QuestionMultiple windows with OpenGL initialized Pin
Nishad S19-Jan-09 2:15
Nishad S19-Jan-09 2:15 
QuestionHow do I Display a 2D array as an image in a MDI using MFC Pin
Darryl Bryk15-Jan-09 14:11
Darryl Bryk15-Jan-09 14:11 
AnswerRe: How do I Display a 2D array as an image in a MDI using MFC Pin
Baltoro25-Jan-09 10:07
Baltoro25-Jan-09 10:07 
AnswerRe: How do I Display a 2D array as an image in a MDI using MFC Pin
Darryl Bryk26-Jan-09 13:10
Darryl Bryk26-Jan-09 13:10 
QuestionDirectShow Video capturing Pin
Hadi Dayvary14-Jan-09 10:27
professionalHadi Dayvary14-Jan-09 10:27 
QuestionopenGL SwapBuffers Pin
Nishad S13-Jan-09 22:11
Nishad S13-Jan-09 22:11 
AnswerRe: openGL SwapBuffers Pin
Dan14-Jan-09 9:07
Dan14-Jan-09 9:07 

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.