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

📄 playlistdlg.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: PlaylistDlg.h
//
// Desc: This dialog shows a view of the current playlist and allows another
//       playlist to be selected from a dropdown menu.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef _PLAYLISTDLG_H_
#define _PLAYLISTDLG_H_

#include <windows.h>

#include "BaseDialog.h"
#include "Plist.h"

enum
{
    I_ALL_MY_MUSIC = 0,
    I_PLAYLIST,
    I_ALL_PLAYLISTS
};

typedef struct
{
    int    iImage;
    TCHAR  szText[50];
} DrawMenuStruct;

class CPlaylistDialog : public CBaseDialog
{
public:
    CPlaylistDialog(HWND hwndParent, bool bOrganizeFavorites = false);
    ~CPlaylistDialog();

    virtual BOOL DialogProc(UINT msg, WPARAM wParam, LPARAM lParam);

protected:
    void    OnInitDialog();
    BOOL    OnNotify(NMHDR *);

    void    OnDropdownMenu();
    void    OnMeasureItem(MEASUREITEMSTRUCT *);
    void    OnDrawItem(DRAWITEMSTRUCT *);
    void    OnContextMenu(POINT);

    HRESULT CreateBars();
    void    EnableMenubarIcons();
    void    UpdateInfo();
    void    SetDropdownText(LPTSTR, int);

private:
    HIMAGELIST  m_himgPlaylist;
    HIMAGELIST  m_himgLocationList;
    HWND        m_hwndDropdown;
    HWND        m_hwndMB;
    HWND        m_hwndTrackList;
    HFONT       m_hFont;

    CPlaylist * m_pPlaylist;

    bool        m_bOrganizeFavorites;
};

#endif /* _PLAYLISTDLG_H_ */

⌨️ 快捷键说明

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