|
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)
{
}
|
|
|
|
|
|
Two questions:
Frank S. wrote:
HANDLE hCommPort
Shouldn't this be HANDLE& hCommPort ?
Are you correctly spelling the COM ports like COM1: and COM2: ?
You are using the same code for CreateFile as I did. The only difference is that I opened only one port... Other than these, I have no immediate clues.
|
|
|
|
|
Hi, does someone know how can i detect the directional button presses in a Visual C++ Application. Thanks
|
|
|
|
|
The direction keys work like the standard keyboard keys VK_UP and the others...
|
|
|
|
|
ok, thanks
|
|
|
|
|
Well, if you have a CListCtrl, you can use that function:
void CList::OnKeydownList(NMHDR* pNMHDR, LRESULT* pResult)
{
LV_KEYDOWN* pLVKeyDow = (LV_KEYDOWN*)pNMHDR;
// TODO: Add your control notification handler code here
if(GetAsyncKeyState(VK_UP))
{
......
}
Hope that helps
Frank
_____ easySMS for pocket PC _____
www.Siedler-Net.de/WinCE/easySMS/
|
|
|
|
|
Has anyone got any experience of programming for the Symbian OS? If so what tools do you use, and can you recommend any books on the matter, in particular the Sony/Ericsson P800?
Andy
|
|
|
|
|
Download latest SDK (C++/Java/OPL/VB) from Symbian developer website. You will find many sample programs that can get you started quickly. I have used C++ SDK. It is highly object oriented and expected development style took sometime initially.
HTH,
Junkie
"* Code till death *"
http://www.askarya.com
|
|
|
|
|
Hi,
Is it possible to start a user mode process from a kernel mode driver?
Thanks in advance.
Shivpal
|
|
|
|
|
I want to disable all of the items in commandbar, but it doesn't seem to be working. Here's what I'm doing:
if (m_menuBarPtr)
{
m_menuBarPtr = GetMenu();
}
if (m_menuBarPtr)
{
MessageBeep(0);
UINT menuStyle = MF_BYPOSITION | ((m_currentBar == 0) ? MF_ENABLED : MF_GRAYED);
m_menuBarPtr->EnableMenuItem(0, menuStyle);
m_menuBarPtr->EnableMenuItem(1, menuStyle);
m_menuBarPtr->EnableMenuItem(2, menuStyle);
m_menuBarPtr->EnableMenuItem(3, menuStyle);
}
I've also tried setting ther m_menuBarPtr by using the return value of the CCeCommandBar::InsertMenu() function.
If you'll notice the
MessageBeep(0); call, I hear that beep when this code is encountered, indicating that I do indeed have a valid CMenu*, but the menu items are still active. According to the CE help, MF_DISABLED is not supported by CE (what an arbitrarily stupid f***ing decision on Microsoft's part), so I can't use it (although I did try it just to make sure, and of course, my app wouldn't compile with it included in the code).
Why does the interface stuff in CE suck so bad? Why is the documentation a complete waste of a CD? Why hasn't there been a decent book written for PPC2K2 development?
BTW, I also added this line in the constructor to CMainFrame
m_bAutoMenuEnable = FALSE;
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|