openurldlg.h

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

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