|
If I add a date time picker to my dialog resource for my property page the dialog fails to get created. If I create a standard dialog it all works fine. Any suggestions?
Joshua Guy Sonork ID: 100.9944
ICQ: 519642
Hotmail: JoshuaJGuy@hotmail.com
|
|
|
|
|
Yes. It's twisted. You have to create it yourself. See my (unrelated) article A File Open Dialog for the PocketPC 2002[^]. Here, in the sample code, you will find two classes: CExDialog and CExDlgEngine . The last is intended to be used as a means to implement common functionalities in both CDialog and CPropertyPage -derived classes. The method you want to use is CreateDateTime . To use it, replace your date time picker with a static control with the same size and ID. In your OnInitDialog use this method like:
CreateDateTime(this, m_dtcDate, IDC_DATE, DTS_SHORTDATEFORMAT);
Where m_dtcDate is declared in your property page class as a CDateTimeCtrl .
Voilá!
|
|
|
|
|
I had a feeling you would probably be the one to answer.
Joshua Guy Sonork ID: 100.9944
ICQ: 519642
Hotmail: JoshuaJGuy@hotmail.com
|
|
|
|
|
I am looking for any help for creating a Multi-Column List Control with some columns to be check boxes. We need this for HPC 3.0 or HPC 2000 and for each field to be editable by just tapping on the field position by the row/column position. Please advise.
thank you
|
|
|
|
|
I'm having trouble implementing CompareItem for a Combobox. I've never used this before. Is there some code samples on how to implement this.
Thanks
|
|
|
|
|
I have spent almost 2 days trying to create a simple csv file that I can import into Excel. But I am having trouble with UNICODE. This is very simple to do in regular VC++ for desktop PC's, but how do you generate a CSV file using eMbedded VC++? Excel, on my desktop, does not like the CSV file generated from my Window CE computer.
Paul Jahans
|
|
|
|
|
You have to translate from UNICODE into MCBS or ANSI. Check the WideCharToMultiByte API.
|
|
|
|
|
Make the first two characters of the CSV file you generate FF FE.
This is how a Unicode text file is identified.
FE FF is used on some OSes with the other byte ordering.
You'll see this if you look at the raw file contents that RegEdit generates when you do a registry export on Windows 2K.
|
|
|
|
|
I can not display 2 objects of the same type(ex:cedit, clistbox) on the same cwindow... but they are created!
|
|
|
|
|
Can you show the code? There should be no problem achieving that.
|
|
|
|
|
I am trying to create a CWindow over a CView but i'm getting a transparent interface
|
|
|
|
|
If I call GetSystemPowerStatusEx() right when the handheld gets turned on the BatteryFlag shows that it is charging but it is not. If I call it any other time it returns the current state. Any ideas why?
Joshua Guy Sonork ID: 100.9944
ICQ: 519642
Hotmail: JoshuaJGuy@hotmail.com
|
|
|
|
|
|
I'm using an html control in my Smartphone2002 application as an output window (so html formatted text is continually being written to it)
My problem is that the control sometimes seems to wait for 3 or 4 lines to be "written" before updating it (which isn't much use when I want a real time update)
Is there something I need to do to force the control to always refresh as soon as I add the text?
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
You have to send a DTM_ENDOFSOURCE message to make sure that the text is complete. I think that you are depending upon a lateral behaviour of the control that is partially rendering your text. You have no control on its internal buffers and how they are flushed. So I think there is no "nice" solution to this problem.
|
|
|
|
|
Hmm, that was what I was suspecting.
Sadly I need to be able to continually update the text while the app is running. Sending the ENDOFSOURCE message means that the control no longer accepts any more input
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
benjymous wrote:
Sending the ENDOFSOURCE message means that the control no longer accepts any more input
Maybe you can work around it. Here is an idea: Set up a buffer where you will add the HTML text. Whenever you have a new text insertion, append it to your buffer, flush the control, and set its contents from the buffer. Maybe you can even try and control the vertical scrollbar, so that the lastest text is always displayed. If you want to avoid flickers, try SetRedraw .
|
|
|
|
|
Yeah, I think that's what I'm going to have to do.
There's an option to jump to a specific anchor, so I'll just write my buffer, followed by an anchor line to the control each time, then jump to that
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Everytime I update a notification the notification beep goes off. Is there any flag to disable the notification beep on an update? Thanks.
Joshua Guy Sonork ID: 100.9944
ICQ: 519642
Hotmail: JoshuaJGuy@hotmail.com
|
|
|
|
|
|
Thanks. I figured out another way.
In the control panel under sounds and notification you can enabled and disable sound for notification that are listed. I added to the registry an entry for my app based on it GUID and did not add the key for the name. I also set the key that tells it to play the sound to 0. Since there is no name it does not show up in the sound notification options giving the user the ability to enabled the sounds. I think this is the preferred approach because there are actually several OS notification that are in there but don't have names so they don't show up in the control panel. Also it won't interrupt an background audio playing. It's worked great for me.
Joshua Guy Sonork ID: 100.9944
ICQ: 519642
Hotmail: JoshuaJGuy@hotmail.com
|
|
|
|
|
I am developing an application in evc++ on win ce.net.
I want to change font size of menu.
I have tried with onmeasureitem,ondrawitem handlers with
ownerdraw style ofmenus.
But still no o/p.
It draws only top level menu not submenu even dose not dropdown also.
So any help please.
Mukund
|
|
|
|
|
Hi,
i have a function, which should open a serial Port. Now i wan't to open more than one port with that function:
HANDLE port1, port2;
PortInitialize(portname1, port1);
PortInitialize(portname2, port2);
with that function:
BOOL CPort::PortInitialize(LPTSTR lpszPortName, HANDLE hCommPort)
{
DWORD dwError;
DCB PortDCB;
COMMTIMEOUTS CommTimeouts;
// Open the serial port.
hCommPort = CreateFile (lpszPortName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
.......
}
But unfortunately, the second port2 can't be opened. I think there is a conflict with the handles, because there should be a pointer on the address of the handle, but that's even not working.
Greetings,
Frank
_____ easySMS for pocket PC _____
www.Siedler-Net.de/WinCE/easySMS/
|
|
|
|
|
After CreateFile check this:
if(ERROR_FILE_NOT_FOUND == hCommPort)
{
}
|
|
|
|
|