Click here to Skip to main content
15,890,845 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: symbian s60 Pin
ali_reza_zareian13-Jul-07 23:52
ali_reza_zareian13-Jul-07 23:52 
GeneralRe: symbian s60 Pin
Chandrasekharan P18-Jul-07 0:45
Chandrasekharan P18-Jul-07 0:45 
QuestionHow to move a non-caption window under WinCE ? Pin
shuaicarr13-Jul-07 17:00
shuaicarr13-Jul-07 17:00 
AnswerRe: How to move a non-caption window under WinCE ? Pin
Alain Rist13-Jul-07 20:36
Alain Rist13-Jul-07 20:36 
QuestionHow to hide a modal dialog application window on startup on WinCE? Pin
FipS!13-Jul-07 1:14
FipS!13-Jul-07 1:14 
AnswerRe: How to hide a modal dialog application window on startup on WinCE? Pin
Alain Rist13-Jul-07 20:23
Alain Rist13-Jul-07 20:23 
GeneralRe: How to hide a modal dialog application window on startup on WinCE? Pin
FipS!16-Jul-07 0:08
FipS!16-Jul-07 0:08 
GeneralRe: How to hide a modal dialog application window on startup on WinCE? Pin
Alain Rist16-Jul-07 1:04
Alain Rist16-Jul-07 1:04 
Hi Filip,
FipS! wrote:
The animated frame of the window is visible for a short time when the dialog is being hidden at the startup


I don't get that on the mobile emulators, what platform do you target?

My test app arranged from WTL 8 Mobile AppWizard 'Dialog App' to generate a modal dialog:

// Invisible.cpp : main source file for Invisible.exe
//

#include "stdafx.h"

#include <atlframe.h>
#include <atlctrls.h>
#define _WTL_CE_NO_ZOOMSCROLL
#define _WTL_CE_NO_FULLSCREEN
#include <atlwince.h>

#ifdef WIN32_PLATFORM_PSPC
#include "resourceppc.h"
#else
#include "resourcesp.h"
#endif

#include "AboutDlg.h"
#include "InvisibleDialog.h"

CAppModule _Module;

int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow)
{
	HRESULT hRes = CInvisibleDialog::ActivatePreviousInstance(hInstance, lpstrCmdLine);

	if(FAILED(hRes) || S_FALSE == hRes)
	{
		return hRes;
	}

	hRes = ::CoInitializeEx(NULL, COINIT_MULTITHREADED);
	ATLASSERT(SUCCEEDED(hRes));

	AtlInitCommonControls(ICC_DATE_CLASSES);
	SHInitExtraControls();

	hRes = _Module.Init(NULL, hInstance);
	ATLASSERT(SUCCEEDED(hRes));

	CInvisibleDialog dlg;
	int nRet = dlg.DoModal(NULL);

	_Module.Term();
	::CoUninitialize();

	return nRet;
}


// InvisibleDialog.h : interface of the CInvisibleDialog class
//
/////////////////////////////////////////////////////////////////////////////

#pragma once

class CInvisibleDialog : 
	public CAppStdDialogImpl<CInvisibleDialog, WTL_SP_SHIDIF, true>
{
public:
	DECLARE_APP_DLG_CLASS(NULL, IDR_MAINFRAME, L"Software\\WTL\\Invisible")
	typedef CAppStdDialogImpl<CInvisibleDialog, WTL_SP_SHIDIF, true> baseDlg;

	enum { IDD = IDD_MAINDLG };

// CAppWindow operations
// ...
	BEGIN_MSG_MAP(CInvisibleDialog)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(ID_APP_ABOUT, OnAppAbout)
		CHAIN_MSG_MAP(baseDlg)
	END_MSG_MAP()

	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled)
	{
		HWND hMenuBar = CreateMenuBar(ATL_IDM_MENU_DONECANCEL);

		StdPlatformInit();
		StdShidInit();

		SetWindowPos(HWND_BOTTOM, 0,0,0,0, SWP_HIDEWINDOW | SWP_NOACTIVATE);

		return FALSE;
	}

	LRESULT OnAppAbout(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
	{
		CAboutDlg dlg;
		dlg.DoModal();
		return 0;
	}

};

cheers,
AR
GeneralRe: How to hide a modal dialog application window on startup on WinCE? Pin
FipS!16-Jul-07 1:38
FipS!16-Jul-07 1:38 
AnswerRe: How to hide a modal dialog application window on startup on WinCE? Pin
Alain Rist16-Jul-07 2:04
Alain Rist16-Jul-07 2:04 
GeneralRe: How to hide a modal dialog application window on startup on WinCE? Pin
ghle20-Aug-07 5:18
ghle20-Aug-07 5:18 
Questionprint Pin
SVb.net12-Jul-07 12:18
SVb.net12-Jul-07 12:18 
AnswerRe: print Pin
ghle20-Aug-07 5:41
ghle20-Aug-07 5:41 
QuestionMobile device to web service and storage Pin
Peterixina12-Jul-07 4:34
Peterixina12-Jul-07 4:34 
QuestionWINDOWS MOBILE DEVICE NETWORK MANAGEMENT Pin
zafax_11-Jul-07 2:50
zafax_11-Jul-07 2:50 
GeneralRe: WINDOWS MOBILE DEVICE NETWORK MANAGEMENT Pin
tuga-x12-Jul-07 1:15
tuga-x12-Jul-07 1:15 
GeneralRe: WINDOWS MOBILE DEVICE NETWORK MANAGEMENT Pin
zafax_12-Jul-07 2:46
zafax_12-Jul-07 2:46 
GeneralRe: WINDOWS MOBILE DEVICE NETWORK MANAGEMENT Pin
tuga-x12-Jul-07 3:09
tuga-x12-Jul-07 3:09 
GeneralRe: WINDOWS MOBILE DEVICE NETWORK MANAGEMENT Pin
zafax_12-Jul-07 3:19
zafax_12-Jul-07 3:19 
AnswerRe: WINDOWS MOBILE DEVICE NETWORK MANAGEMENT Pin
Mike Dimmick12-Jul-07 3:02
Mike Dimmick12-Jul-07 3:02 
GeneralRe: WINDOWS MOBILE DEVICE NETWORK MANAGEMENT Pin
zafax_12-Jul-07 3:12
zafax_12-Jul-07 3:12 
QuestionMobile development Pin
Pamela198410-Jul-07 23:47
Pamela198410-Jul-07 23:47 
AnswerRe: Mobile development Pin
Sathesh Sakthivel11-Jul-07 0:25
Sathesh Sakthivel11-Jul-07 0:25 
GeneralRe: Mobile development Pin
Pamela198412-Jul-07 21:13
Pamela198412-Jul-07 21:13 
GeneralRe: Mobile development Pin
Sathesh Sakthivel13-Jul-07 18:29
Sathesh Sakthivel13-Jul-07 18:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.