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

📄 basedialog.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: BaseDialog.h
//
// Desc: This class is used as a base class for all of the playlist related
//       dialogs.  It allows a dialog to be created as modal or modeless even
//       though all playlist dialogs are modal.
//
//////////////////////////////////////////////////////////////////////////////

#ifndef BASEDIALOG_H
#define BASEDIALOG_H

#include <windows.h>

extern HINSTANCE g_hInst;

class CBaseDialog
{
public:
    CBaseDialog( HWND hwndParent, int nDialogResID );

    //////////////////////////////////////////////////////////////////////////
    //
    // Display the derived dialog class
    //
    int DoModal();
    HWND DoModeless( HWND hwndParent );
    operator HWND() const { return(m_hwndDlg); }

protected:
    //////////////////////////////////////////////////////////////////////////
    //
    // Derived classes override to provide useful functionality
    //
    virtual BOOL DialogProc( UINT msg, WPARAM wParam, LPARAM lParam )
    {
        return( FALSE );
    }

    static BOOL CALLBACK DlgProc( HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam );

    void SetHwnd( HWND hwndDlg ) { m_hwndDlg = hwndDlg; }

    //////////////////////////////////////////////////////////////////////////
protected:
    HWND    m_hwndDlg;
    HWND    m_hwndParent;
    int     m_nDialogResID;
};

#endif  // BASEDIALOG_H

⌨️ 快捷键说明

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