AAG
May 18th, 2001, 04:06 AM
i am currently developing a Media Player in c++ completely using API. i have all the basics of the media player such as opening a media file, resizing it, playing it, and so on and so forth. i am using a standard static control's hWnd to display the video in. the problem is that when the video is displayed, it blinks once and then no video can be seen until the window is moved or minimized. i tried calling a few functions that refresh a control and or the main window. the ones i've tried are below. i've also tried a BS_GROUPBOX control to display the videos in, it displays the video fine, but since the GROUPBOX has the frame, it can be seen when the video is displayed. i know there is a way to do a picturebox, but how ? i don't know how. i would think a picturebox control would work, but i'm not sure, anyways readon and see what you can help out with, thanx.
void Paint();
UpdateWindow(txtpass);
i also tried Autoredrawing in the style property of the window like this
WndClass.style = CS_HREDRAW|CS_VREDRAW;
i think the window needs to be repainted once i've opened the media file, but i don't know how. Thanx for any input.
void Paint();
UpdateWindow(txtpass);
i also tried Autoredrawing in the style property of the window like this
WndClass.style = CS_HREDRAW|CS_VREDRAW;
i think the window needs to be repainted once i've opened the media file, but i don't know how. Thanx for any input.