|
对话框显示正常,但与对话框关联的视频始终在最上面,不随对话框最小化而最小化
- g_hwnd = CreateWindow(
- mainClassName,
- TEXT("32player"),
- (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU |
- WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX),
- CW_USEDEFAULT,
- CW_USEDEFAULT,
- CW_USEDEFAULT,
- CW_USEDEFAULT,
- NULL,
- NULL,
- hInstance,
- NULL
- );
- ShowWindow( g_hwnd, CmdShow );
- UpdateWindow( g_hwnd );
- /////////////////////////////////////////////////////////////////////////////////////
- Context_Init((tchar_t*)T("TCPMP"),(tchar_t*)T("0.72SRC"),3,(tchar_t*)Cmd,NULL);
- //上下文创建
- context* p=Context();
- //播放模块的初始化
- player* myplayer;
- myplayer=NULL;
- if(p)
- myplayer=(player*)(p->Player);
- //播放窗口关联
- Context_Wnd(g_hwnd);
复制代码 |
|