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

📄 m8ledemu.cpp

📁 魅族M8 LED源码 wince的。。。需要的下
💻 CPP
字号:
/************************************************************************/
/*
 * Copyright (C) Meizu Technology Corporation Zhuhai China
 * All rights reserved.
 * 中国珠海, 魅族科技有限公司, 版权所有.
 *
 * This file is a part of the Meizu Foundation Classes library.
 * Author:    Michael
 * Create on: 2008-12-1
 */
/************************************************************************/

// The steps for running this sample code:
// Use Visual Studio 2005/2008 to create a smart device project,
// Choose M8SDK,
// Choose empty project,
// Add a sample.cpp file to the project,
// Copy this peace of code into the sample.cpp,
// Now, you can build the project and try to run it in M8 emulator or device.

// include the MZFC library header file
#include <mzfc_inc.h>
#include "LedEmuWnd.h"
#include "ShellNotifyMsg.h"

// This sample shows in a MZFC application:
// application's creation & initialization,
// window's creation & initialization,
// using button control, and process its command.

// ID of the button in the window

MZ_IMPLEMENT_DYNAMIC(CLedEmuWnd)

// Application class derived from CMzApp
class CSample1App: public CMzApp
{
public:
  // The main window of the app.
  CLedEmuWnd m_MainWnd;

  // Initialization of the application
  virtual BOOL Init()
  {
	// Init the COM relative library.
    CoInitializeEx(0, COINIT_MULTITHREADED);

	// Create the main window
    RECT rcWork = MzGetWorkArea();
	rcWork.top = 0;
    m_MainWnd.Create(rcWork.left,0,RECT_WIDTH(rcWork),RECT_HEIGHT(rcWork), 0, 0, 0);
	HideMzTopBar();
    m_MainWnd.Show();
	// return TRUE means init success.
    return TRUE;
  }
};

// The global variable of the application.
CSample1App theApp;

⌨️ 快捷键说明

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