playlistdlg.h

来自「Windows CE 5.0 多媒体播放器源代码」· C头文件 代码 · 共 76 行

H
76
字号
//
// 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 + =
减小字号Ctrl + -
显示快捷键?