badfoot.blogg.se

Kb2538242 are installing many times
Kb2538242 are installing many times







kb2538242 are installing many times

I am developing an application for playing wmv with windows media player control.īut, it will hung up during video playback on rare occasion. Return DefWindowProc(hWnd, message, wParam, lParam) Unsigned style = GetWindowLong(hWnd, GWL_STYLE) įillRect((HDC)wParam, &ps.rcPaint, hBrush) ĭefault: /* for messages that we don't deal with */ HBRUSH hBrush = CreateSolidBrush(RGB(255, 0, 0)) PostQuitMessage(0) /* send a WM_QUIT to the message queue */ Switch (message) /* handle the messages */ WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_CHILD,

kb2538242 are installing many times

Static LPCTSTR lpszCl0Name = L"Child Class" Static LPCTSTR lpszClName = L"Wnd Class" Wc.hIcon = (HICON)LoadIcon(NULL,IDI_APPLICATION) Wc.hCursor = (HCURSOR)LoadCursor(NULL,IDC_CROSS)

kb2538242 are installing many times

Wc.hbrBackground = (HBRUSH)(COLOR_WINDOW) Wc.lpszClassName = (LPCTSTR)lpszClassName Wc.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS | CS_OWNDC Int RegClass(HINSTANCE hInstance,LPCTSTR lpszClassName) Pivotal is "if ((style & WS_CHILD) != 0) " I add WS_OVERLAPPEDWINDOW to WS_CHILD window to better seeing. For overlapped is OK, but for WS_CHILD dirty/invalidate rect ps.rcPaint is always (0,0,0,0) I try paint on overlapped and child windows using WinApi.









Kb2538242 are installing many times