开发学院手机开发Windows Mobile 开发 PocketPC下 创建全屏幕应用程序 阅读

PocketPC下 创建全屏幕应用程序

 2010-08-22 12:34:00 来源:WEB开发网   
核心提示:shidi.dwMask = SHIDIM_FLAGS;shidi.dwFlags = SHIDIF_FULLSCREENNOMENUBAR;shidi.hDlg = m_hWnd;SHInitDialog(&shidi);// Set the icon for this dialog box. The framewo

shidi.dwMask = SHIDIM_FLAGS;

shidi.dwFlags = SHIDIF_FULLSCREENNOMENUBAR;

shidi.hDlg = m_hWnd;

SHInitDialog(&shidi);

// Set the icon for this dialog box. The framework does this automatically

// when the application's main window is not a dialog box.

SetIcon(m_hIcon, TRUE); // Set big icon.

SetIcon(m_hIcon, FALSE); // Set small icon.

// TODO: Add extra initialization here.

::CommandBar_Show(m_pWndEmptyCB->m_hWnd, FALSE);

// SHFullScreen fails if dialog box is not foreground.

SetForegroundWindow();

SHFullScreen(m_hWnd, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON);

// Resize the window over the taskbar area.

#define MENU_HEIGHT 26

RECT rect;

GetWindowRect(&rect);

rect.top -= MENU_HEIGHT;

MoveWindow(&rect, TRUE);

return TRUE;

}

上一页  1 2 3 

Tags:PocketPC 创建 屏幕

编辑录入:coldstar [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接