📄 picbrowserdlg.h
字号:
/*
*
* Copyright (C) 2004-2006, Freescale Semiconductor, Inc. All Rights Reserved.
* THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
* AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
*
* File: APPS/CAMAPP/PicBrowserDlg.h
* Purpose: This file contains the prototype for the PicBrowserDialogProc.
* Notes:
*
*/
#ifndef _SUPPORT_APPS_PICBROWSERDLG_H
#define _SUPPORT_APPS_PICBROWSERDLG_H
/*********************************************************************
INCLUDE FILES
*********************************************************************/
#include <windows.h>
#include "CDIB.h"
#include "Jpegfile.h"
/*********************************************************************
GLOBAL DEFINITIONS
*********************************************************************/
#define PD_SHOW WM_APP
#define PD_UPDATE WM_APP+1
#define PD_CLOSED WM_APP+2
/*********************************************************************
MACRO DEFINITIONS
*********************************************************************/
#define JPEG_FILE_NAME_MAX 2048
/*********************************************************************
ENUMERATIONS AND STRUCTURES
*********************************************************************/
/*********************************************************************
EXPORTED FUNCTIONS
*********************************************************************/
BOOL CALLBACK PicBrowserDialogProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
/*********************************************************************
CLASS DEFINITIONS
*********************************************************************/
class CPicBrowserDlg
{
public:
CPicBrowserDlg();
~CPicBrowserDlg();
BOOL Init(HWND hWnd);
BOOL Fini();
BOOL Show(int iShowCmd);
WCHAR m_wcFileName[JPEG_FILE_NAME_MAX];
UINT GetFileName();
BOOL LoadPic(UINT uIndex);
BOOL DrawPic(HDC hDC);
private:
HWND m_hWnd;
HWND m_hWndParent;
CDIB m_DIBSection;
};
/*********************************************************************
END OF FILE
*********************************************************************/
#endif //_SUPPORT_APPS_PICBROWSERDLG_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -