⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 propertydlg.h

📁 media player 控件源码 用EVC编译可以进行对WINCE下media player控制
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
///////////////////////////////////////////////////////////////////////////////
// File: PropertyDlg.h
//
// Desc: This file defines a class that will house the Property Dialog box.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef _PROPERTYDLG_H_
#define _PROPERTYDLG_H_

#include <windows.h>
#include <dxmplay.h>
#include <strmif.h>
#include <amvideo.h>
#include <wtypes.h>
#include <qnetwork.h>

#include "playerwindow.h"

#define PD_SHOW     WM_APP
#define PD_UPDATE   WM_APP+1
#define PD_CLOSED   WM_APP+2

BOOL CALLBACK PropertyDialogProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);

typedef struct _AudioInfo
{
    WAVEFORMATEX wfmtWaveFormat;
    BSTR         bstrCodecDescription;
    LPWSTR       lpwcCodecBitrate;
    BOOL         bStereo;   
    VARIANT_BOOL bSecure;
} AUDIOINFO, LPAUDIOINFO;

class CPropertyDlg
{
 public:
    CPropertyDlg();
    ~CPropertyDlg();

    bool Init(HWND hWnd);
    bool Fini();

    bool Show(int iShowCmd);
    void Update(TCHAR * szFilename);
    void UpdateAndRender(TCHAR * szFilename);
    BOOL HandleNotifyMsg( HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );

 private:
    HRESULT AudioInfo( LPAUDIOINFO           * audioInfo,
                       IBasicAudio           * piba,
                       IAMNetShowExProps     * pnsep,
                       IAMSecureMediaContent * psmc );
    HRESULT VideoInfo( BSTR              * videoInfo,
                       IAMNetShowExProps * psnep );
    HWND   m_hWnd;
    HWND   m_hWndParent;
    HWND   m_hListView;
    HFONT  m_hFont;
};

#endif /* _PROPERTYDLG_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -