Click here to Skip to main content
15,915,703 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Rebuild All Blues Pin
Tomasz Sowinski19-Mar-02 4:26
Tomasz Sowinski19-Mar-02 4:26 
GeneralCrystal reports Control Pin
Monty219-Mar-02 4:11
Monty219-Mar-02 4:11 
GeneralRe: Crystal reports Control Pin
Bill Wilson19-Mar-02 14:24
Bill Wilson19-Mar-02 14:24 
GeneralRe: Crystal reports Control Pin
Monty220-Mar-02 2:06
Monty220-Mar-02 2:06 
GeneralRe: Crystal reports Control Pin
Bill Wilson20-Mar-02 6:16
Bill Wilson20-Mar-02 6:16 
GeneralDC Blues Pin
Monty219-Mar-02 4:08
Monty219-Mar-02 4:08 
GeneralRe: DC Blues Pin
Tomasz Sowinski19-Mar-02 4:20
Tomasz Sowinski19-Mar-02 4:20 
GeneralWindow Repainting Pin
#realJSOP19-Mar-02 4:07
professional#realJSOP19-Mar-02 4:07 
I have a weird little problem, and I think it's associated with DirectShow.

I have an app that creates a CView-based window, and passes the hwnd to a DLL. The hwnd allows me to "attach" (don't know a better word at the moment) a live video preview to the window that was created in the app.

When I move the child window/view around in the app's window, everything is fine - the window always repaints itself. However, if I move the window so that a portion of the client rect is clipped by the app window, when I move the child completely back onto the app window, the portion that *was* clipped does not repaint itself.

I tried various API calls (MoveWindow, SetWindowPos, UpdateWindow, InvalidateRect, and RedrawWindow), but to no avail.

Thinking the problem might be one of timing (a message was getting lost/ignored somehow), I put Sleep(1000); in the code just before my rectangle update. This caused the window to repaint itself correctly at first, but then after the one-second delay, *my* repaint occurred, and the portion that was previously out of view repainted as black.

As an afterthought, I decided to just comment out the contents of my dll window repainting function, and exactly the same thing happens, so I know it's not my code that's causing this.


Does anyone have any words of wisdom?


PS. Both the app and the DLL use MFC, and I cannot add additional parameters that can be passed to the DLL from the app (architectural restriction, not mine).



"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
GeneralRe: Window Repainting Pin
Tomasz Sowinski19-Mar-02 4:35
Tomasz Sowinski19-Mar-02 4:35 
GeneralRe: Window Repainting Pin
#realJSOP19-Mar-02 5:11
professional#realJSOP19-Mar-02 5:11 
Generalchanging an application's shell icon Pin
Chris Hambleton19-Mar-02 3:45
Chris Hambleton19-Mar-02 3:45 
GeneralRe: changing an application's shell icon Pin
Tomasz Sowinski19-Mar-02 3:50
Tomasz Sowinski19-Mar-02 3:50 
GeneralRe: changing an application's shell icon Pin
Chris Hambleton19-Mar-02 4:12
Chris Hambleton19-Mar-02 4:12 
GeneralRe: changing an application's shell icon Pin
Tomasz Sowinski19-Mar-02 4:24
Tomasz Sowinski19-Mar-02 4:24 
GeneralRe: Cannot use COMBOBOX INFO Pin
Tomasz Sowinski19-Mar-02 3:45
Tomasz Sowinski19-Mar-02 3:45 
GeneralRe: Cannot use COMBOBOX INFO Pin
Tomasz Sowinski19-Mar-02 4:02
Tomasz Sowinski19-Mar-02 4:02 
GeneralRe: Cannot use COMBOBOX INFO Pin
Tomasz Sowinski19-Mar-02 4:31
Tomasz Sowinski19-Mar-02 4:31 
GeneralRe: Cannot use COMBOBOX INFO Pin
Tomasz Sowinski19-Mar-02 4:43
Tomasz Sowinski19-Mar-02 4:43 
GeneralRe: Cannot use COMBOBOX INFO Pin
Tomasz Sowinski19-Mar-02 4:48
Tomasz Sowinski19-Mar-02 4:48 
GeneralRe: Cannot use COMBOBOX INFO Pin
Tomasz Sowinski19-Mar-02 4:53
Tomasz Sowinski19-Mar-02 4:53 
Generalhelp needed on arrays Pin
Jasmin Khan19-Mar-02 3:16
Jasmin Khan19-Mar-02 3:16 
GeneralRe: help needed on arrays Pin
RalfPeter19-Mar-02 3:35
RalfPeter19-Mar-02 3:35 
GeneralRe: help needed on arrays Pin
Jasmin Khan19-Mar-02 4:02
Jasmin Khan19-Mar-02 4:02 
GeneralRe: help needed on arrays Pin
Jon Hulatt19-Mar-02 5:58
Jon Hulatt19-Mar-02 5:58 
GeneralVisual C++ class view Pin
Gutner19-Mar-02 1:52
Gutner19-Mar-02 1:52 

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.