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

📄 openurldlg.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: OpenURLDlg.h
//
// Desc: This file contains the prototype for the OpenURLDialogProc.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef _OPENURLDLG_H_
#define _OPENURLDLG_H_

#include <windows.h>

#define MAX_FILEOPEN_HISTORY 5
///////////////////////////////////////////////////////////////////////////////
// This structure is used to pass parameters to the OpenURL dialog box
///////////////////////////////////////////////////////////////////////////////
typedef struct _args
{
   TCHAR **szURL;
   TCHAR  *szFilename;
   TCHAR  *szFilenameHistory[ MAX_FILEOPEN_HISTORY ];
} args_t;

///////////////////////////////////////////////////////////////////////////////
// Name:    OpenURLDialogProc()
// Returns: FALSE - The message was not handled
//          TRUE  - The message was handled
///////////////////////////////////////////////////////////////////////////////
BOOL CALLBACK OpenURLDialogProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);

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

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

   bool Show(int iShowCmd);

 private:
   HWND   m_hWnd;
   HWND   m_hWndParent;
};

#define MAX_URL_LENGTH 2048

#endif /* _OPENURLDLG_H_ */

⌨️ 快捷键说明

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