|
Hello,
I have searched for about 2 days now and have found no way to control the backlight and suspend mode using Visual Basic (included with Visual Studio).
I am certain there must be a way to do it - but I am at a total loss!
thanks in advance!
|
|
|
|
|
hi
What is the best IDE for programing symbian S60?
|
|
|
|
|
Symbian s60[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
What do u think of code warrior?
|
|
|
|
|
i would say that u can use carbide.c++ to develop. i find it much easier than code warrior.
|
|
|
|
|
i want to move a subwindow(a control) by mouse .
of course ,the subwindow don't have a caption.
On PC platform, i implement that by handling "WM_NCHITTEST"
and return a HTCAPTION.
but there seems no WM_NCHITTEST under WinCE .so how can i do that ?
|
|
|
|
|
|
Hi,
I'm working on a simple application which consists of a single modal dialog window only. I want the dialog to be hidden on startup. As you perhaps know there are some difficulties with this... The solution on 'big' Windows could be to filter out the first 'SWP_SHOWWINDOW' request which is being automatically sent after 'WM_INITDIALOG'
So in response to 'WM_WINDOWPOSCHANGING' you can do something like this:
WINDOWPOS* pWP = (WINDOWPOS*)lParam;
if((pWP->flags & SWP_SHOWWINDOW) && m_bFirstTimeShow)
{
pWP->flags &= ~SWP_SHOWWINDOW;
m_bFirstTimeShow = false;
}
My question is: How can I achieve the same effect of WinCE? It seems that even 'WINDOWPOSCHANGING' is not being sent on WinCE?? I use WTL, but it seems to be a general issue. Any suggestion??
Cheers,
FipS
______________________________________________
+++ Filip STOKLAS (FipS), http://HOLE.4FipS.com
|
|
|
|
|
Hi Filip,
In your OnInitDialog() handler use
SetWindowPos(HWND_BOTTOM, 0,0,0,0, SWP_HIDEWINDOW | SWP_NOACTIVATE); and your modal dialog will be hidden.
cheers,
AR
|
|
|
|
|
Hi Alain,
Thanks for you tip. There is a problem with the technique though. The animated frame of the window is visible for a short time when the dialog is being hidden at the startup. I would prefere a solution where the dialog doesn't become visible at all (to deal with this visual issues).
Anybody has an idea how to improve this?
Filip
_______________________________________________
+++ Filip STOKLAS (FipS), http://HOLE.4FipS.com
|
|
|
|
|
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:
#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 , 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;
}
#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 };
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 , WPARAM , 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 , WORD , HWND , BOOL& )
{
CAboutDlg dlg;
dlg.DoModal();
return 0;
}
};
cheers,
AR
|
|
|
|
|
Hi Alain,
I'm using custom platform based on WinCE 5 on a Freescale board. There are probably differences in window show/hide effects among platforms and on my platform the effect is visible in spite of the fact that the window is shown only for a very short moment. I think that for a general solution it is necessary to find a way similar to my original example.
Filip
|
|
|
|
|
Hi Filip,
The WinCE dialog manager is not platform dependant. Things would be easier if your dialog was not modal, as you could create without WS_VISIBLE style. I suggest that you check the first message your WndProc gets and SetWindowPos() there. You may also specialize CDialogImplBaseT<CYourDialog>::StartDialogProc() and SetWindowPos() there.
Good luck,
AR
|
|
|
|
|
Alain is right on the money.
Be sure to have the call to hide the window within OnInitDialog() as he shows. OnInitDialog() is executed *before* the dialog window is displayed, so you should see no flicker.
If you hide after the OnInitDialog()) has been completed, the window will/may appear and will then be hidden when your code is called, just as you are describing.
HTH
Gary
|
|
|
|
|
i have a pocket pc and a printer .
i need to print from my program this wrote by C#.net 2005
and i can't found control for printing like (documnetprint in windows application) how i can print?
123
|
|
|
|
|
Write the print data to a file, configure and open the COM port, send the print data/file out the COM port, close the port.
Or HP has CE drivers for their own printers.
GE
|
|
|
|
|
Hi there,
I currently have a Pocket PC client created in the .NET compact framework using C#. It connects to a web service (which in turn can connect to a SQL DB)
The Client sends requests (ie: Add Device, View Devices etc).
I want to be able to store these requests on the mobile device somehow. This is so that if the connection isn't there, devices can still be added to the "queue" so that when there is a connection the Client will call the webservice to add the devices in this queue. It has to be stored on the actual device because the application or device may be closed/turned off before the connection is restablished.
There are a few ways I have thought of doing these:
- SQL Express
- Storing in XML
- Somehow capturing the XML/SOAP message and storing this.
I was wondering if there are any others that people could add or any suggestions genereally.
Thanks in advance,
Pete
-- modified at 10:43 Thursday 12th July, 2007
-- Updated title and removed blank lines!
|
|
|
|
|
I am working with:
- VS.Net 2005
- Compact Framework .NET 2.0
- Windows Mobile 2003 Pocket PC.
create a cab file which install gprs setting (IP, Proxy address and Access Point) needs connection for internet, we copies cab file to mobile device which can be used to install setting for gprs internet.
do anyone of you know how to do this? oh! pls helP me to do so! thanks!
we fly to our destination as we help eac other, keep it in touch!
|
|
|
|
|
Hi zafax4.
Do you want to know how to create the CAB file and copy it to the device, or do you want to know how to create a CAB file that will install the GPRS settings?
Creating the CAB file is easy, specially on VS2005. However, I've never dealt with GRPS settings so assuming those settings are in the form of a simple file, then it would be a matter of including that file on the CAB file.
|
|
|
|
|
thanks for your reply, i know how to deploy an windows mobile application and create cab files, i just want know how this xml file can be used to install the configuration in the device automatically.
hmmmmmmmm
|
|
|
|
|
Well, it seems Mike has helped you out. I was going to suggest using DMProcessConfigXML, but I guess that would only make sense if trying to setup the GPRS settings programmatically.
Anyway, you're in safe hands with Mike, he's the one who helped me out after all!!
|
|
|
|
|
you right tuga, mike is very helpful and i always appreciate him and thank you too.
zafaa
|
|
|
|
|
You can use the CM_GPRSEntries Configuration Service Provider to achieve this. For the UK Vodafone network, we're using this XML:
<?xml version="1.0" encoding="utf-8"?>
<wap-provisioningdoc>
<characteristic type="CM_GPRSEntries">
<characteristic type="Vodafone GPRS">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
<parm name="UserName" value="web" />
<parm name="Password" value="web" />
<parm name="Domain" value="" />
<parm name="IpHeaderCompression" value="1" />
<parm name="SwCompression" value="1" />
<characteristic type="DevSpecificCellular">
<parm name="GPRSInfoValid" value="1" />
<parm name="GPRSInfoAccessPointName" value="internet" />
<parm name="GPRSInfoDataCompression" value="2" />
<parm name="GPRSInfoHeaderCompression" value="2" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc> You should save this to a file named _setup.xml . You can then use the makecab tool to make an installation cabinet containing the file. For Pocket PC 2003, you need to turn compression off and give the CAB a .cpf extension. For Windows Mobile 5.0 and later you can include the configuration XML in a regular, compressed setup CAB. See Creating a .cpf File[^] in MSDN Library.
|
|
|
|
|
thanks a lot! hows you Mike Dimmick? yeah thats exactly what i wanna know about xml.setup and cab file extension. i go through this.
thanks
zafaa
|
|
|
|
|
Hi Guys and Girls,
I am having trouble writing my first mobile application with Compact Framework.
Can anyone give me some sample code for a small application so that I can see how it works and familarise myself with the program.
Many thanks,
Pamela
|
|
|
|