WEB开发网
开发学院手机开发Windows Mobile 开发 关于wince中的全屏显示 阅读

关于wince中的全屏显示

 2010-08-22 12:34:00 来源:WEB开发网   
核心提示:在主程序的对话框类*Dlg.cpp实现文件中做如下修改::(1)在消息映射处加入BEGIN_MESSAGE_MAP(CFullScreenDialogDlg, CDialog)//{{AFX_MSG_MAP(CFullScreenDialogDlg)ON_WM_SETTINGCHANGE() >1ON_WM_AC

在主程序的对话框类*Dlg.cpp实现文件中做如下修改::

(1)在消息映射处加入

BEGIN_MESSAGE_MAP(CFullScreenDialogDlg, CDialog)

//{{AFX_MSG_MAP(CFullScreenDialogDlg)

ON_WM_SETTINGCHANGE() ========================================>1

ON_WM_ACTIVATE() ============================================>2

//}}AFX_MSG_MAP

END_MESSAGE_MAP()

手工添加这两个函数:

void CFullScreenDialogDlg::OnSettingChange()

{

}

void CFullScreenDialogDlg::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)

{

CWnd::OnActivate(nState, pWndOther, bMinimized); //注意这里从CWnd继承

SHFullScreen( this->m_hWnd, SHFS_HIDETASKBAR);//D*k/a-@!O:n ~

=======================================================

wince中不使用SHFullScreen的全屏方法

2008-07-22 12:53

Introduction

The usual method of creating a full screen window in Windows CE involves using the function SHFullScreen. This article describes a method of creating full screen windows with standard window management calls.

The Variables

HWND hWnd; // The main window handle

HWND hWndInputPanel = NULL; // The SIP

HWND hWndTaskBar = NULL; // The TaskBar

HWND hWndSipButton = NULL; // The SIP Button

BOOL mode = false; // Our current window mode.

// True = Fullscreen

// False - Windowed (Startup Default)

Finding the Window InformationThe first step is to find the handles of the three main windows that handle the TaskBar, Standard Input Panel (SIP) and SIP Button Bar. This should be done early on in the application during initialization.void InitFullScreen (void)

{

hWndInputPanel = FindWindow(TEXT("SipWndClass"), NULL);

hWndSipButton = FindWindow(TEXT("MS_SIPBUTTON"), NULL);

Tags:关于 wince 显示

编辑录入:coldstar [复制链接] [打 印]
赞助商链接