|
Hi, I'm developing a Dialog app in Visual C++. I want to add an Active Control to my project but it doesn't work. The ACtiveX control is registered in my Desktop, and I drag it to my dialog app. Then I copy the .dll and the app to my POcket PC and I execute the app and it doesn't run.
Maybe I have to register the ActiveX control in the Pocket PC? I read something about use "regsrvce.exe" for register ActiveX control but I don't find it.
How can I do it??
Thanks.
Regards.
Regards,
Javier
|
|
|
|
|
Hi,
Is there any way to use the regular controls(such as Labels & EditBoxs)
in the vertical way instead of the horizonal way?
I need to develope application to a PDA that will be put on horizonal stand.
Regards,
Eli
|
|
|
|
|
Hi, I am having problem getting the LBUTTONDOWN message from the DesktopExplorerWindow.
The problem is that I cannot use any window in my application, because I wan´t to seamlessly fade from the desktop bitmap to an application bitmap using the directdraw blit for the primary surface( that is the DesktopWindow.... ).
If I create the window, during the launch of the window you can see the borders of the window coming from nowhere and then expanding to the real size of the window.
That is precisly what I don´t want to see!
I have tried to create the window without any border, specifying only the WS_VISIBLE style, but with no luck.
So, how can I get the LBUTTONDOWN message from the DesktopWindow not using any window?
Thanks, for taking your time, Dani
|
|
|
|
|
Hi,
I don't understand - why do you need the LBUTTONDOWN message in a PocketPC application????
Regards,
Eli.
|
|
|
|
|
Well,actually the OS is wince 4.2, and all user input is coming from either the touchscreen/stylus or 4 buttons/switches.
I wan´t to redirect all the messages that goes to the desktopwindow, catch the LBUTTONDOWN message from my application and respond to it.
Then I am going to make a "fake" window by blitting to the primary surface using direct draw.
I want a message pump for my "fake "window that only catches the LBUTTONDOWN message.
The thing is that I don´t want to create any window, because when launching the window without anything on it and using no style at all produces a small box getting bigger and bigger until the window is fully expanded that is the border of the window (....and Yes it shows the border even if I have not specified that I want it, I have put the style of the window to NULL ).
I wan´t to be able to fade out the desktop window and fade in to my "fake" direct draw window seamlessly without creating any window!
The fake window is actually the primary surface which is also the desktop window.
Actually what I wan´t to do, If i explain it simple, is that I wan´t a background application (that is an application without any window) running that responds to every mouseclick send in the system.
In a PC or visual c++ this is done with a HOOK that filters the mouse messages, but in windows ce HOOK:ing with SetWindowsHookEx is not supported!
So what can I possible do, to achieve this?
|
|
|
|
|
Hi, I try to create a tab control for two dialogs in a dialog-based project.
In "On-initdialog" main Dialog, I do:
[code]m_pTabCtrl->Create(TCS_TABS | TCS_FIXEDWIDTH | WS_CHILD | WS_VISIBLE, CRect(0,0,100,20), this,1);[/code]
, where "m_pTabCtrl" is a pointer to a CTabCtrl member variable.
Then I want to add the 2 dialogs to this tab control, but I dont know how to do it.
Anyone can help me to complete the tab control?Do I need to add another code?
Thank you.
Regards,
Javier
|
|
|
|
|
Hi, I'm Javier. I'm developing a dialog-based application in windows mobile 2003 SE with embedded Visual
C++ 4. It's a full screen app. When I put the screen in landscape mode, appears a vertical scroll bar in my main dialog app, although
my dialog window is smaller than the screen.
I want to know any way to remove or hide this scroll bar, How can I do it?
Any help will be appreciated.
Thanks you.
Regards,
Javier
|
|
|
|
|
Hi,
My module is to send and receive a byte using a microcontroller 8051, driver program is to be written in C.
Pls help how to start?
mithila
|
|
|
|
|
Just,for example...
#define SendByte(c) TI=0;SBUF = c;while(TI==0);TI=0
|
|
|
|
|
try to look into bioscom.h and its subroutines .
Engineering is the effort !
|
|
|
|
|
How can I program - playing the sound (waw, mp3) on pocketPC (arm), using c++?
|
|
|
|
|
Hello everyone,
I'm wondering if you could help. I'm looking for a way to detect when a CF or SD card is inserted into my pocket pc.
Any ideas?
|
|
|
|
|
I want to hide the mouse cursor of my WIN CE application after a few seconds when it is not in motion.
I have created a thread and made it call the ShowCursor() for hiding and showing the cursor. But since it is called from a thread the mouse cursor is not hiding.
I have tried using both worker thread and UI thread.
When we use the funtion in normal flow of the program it works fine. Is there any othere way to achive this functionality. Plz help me.
Thanks and Regards,
Rajesh Prabhu. R
|
|
|
|
|
hello all,
i am an embedded systems student from india. i am planning to develope an OS for mobile devices?. if u have any suggestions plz give me. and what r the things that i need to keep in mind while developing the OS for Mobile Devices.
Thanking u.
ComputerNewton
|
|
|
|
|
need help! not sure where to start. I am looking for suggestions (books, articles, anything) on how to write codes for mobile video games. i already have a design of the game to include model. any help is appreciates.
dee
|
|
|
|
|
Good day,
Anybody know whats the equivalent API's in windows CE?
Windows XP Windows CE
OpenProcessToken ?
LookupPrivilegeValue ?
AdjustTokenPrivileges ?
ExitWindowsEx ?
Thanks & Have a nice day
|
|
|
|
|
Hi, I'm developing a Dialog-based project in which I hide the Command bar and SIP Button (the bar below the screen). I use "SHInitDialog" and "SHFullScreen" methods that works OK. The problem is:
If I open another application in the PPC (for example Word) which uses the SIP button and the SIP keyboard, then I close it and when my application reappears the command bar is here.
I use "SHInitDialog" and "SHFullScreen" in the "WM_ACTIVATE" message and "OninitDialog" routine, but when my app retakes the control the command bar is not hide!.
Anyone knows what's happen? How I can hide the commmand bar?
Any help will be appreciated.
Regards,
Javier
|
|
|
|
|
Do you use the WM_PAINt message?
|
|
|
|
|
First of all I'm using eMbedded Visual C++ 3.0, PPC2002 SDK, and I have a AppWizard SDI application without a Document. With me so far?
Okay, now here's my problem.
I'm hoping to produce a game for Pocket PC as a programming excersize. Probably Freecell.
My OnPaint function for CChildView does the following:
1. It makes the background green.
2. It creates a CBitmap from a resource and draws it.
3. It calls a member function which does the same thing as 2, except with a different bitmap (ShowCard)
4. It calls another member function which takes a parameter telling it which of two bitmaps to draw and draws the appropriate one. (ShowKing)
Now I have a OnClick handler in CMainFrame, which calls a member function in CChildView, which handles the OnClick event.
This handler determines which half of the screen you clicked, then tells ShowKing which bitmap to draw. But it doesn't actually do it:
void CChildView::ShowKing(int facing) {
CPaintDC dc(this); // device context for painting
CDC tempdc;
CBitmap card;
if ( facing == 1 ) card.LoadBitmap(IDB_KINGRIGHT);
else card.LoadBitmap(IDB_KINGLEFT);
card.CreateCompatibleBitmap(&tempdc,29,41);
tempdc.CreateCompatibleDC(&tempdc);
tempdc.SelectObject(&card);
dc.BitBlt(113,3,14,16, &tempdc,0,0,SRCCOPY);
}
Can anyone help me figure out what's wrong?
-nand
|
|
|
|
|
Try to release the device context at the end of the function:
ReleaseDC(&dc);
ReleaseDC(&tempdc);
Hope it works.
Regards,
Eli
|
|
|
|
|
It didn't work
Any other ideas? SendMessage(WM_PAINT) instead of calling my function doesn't seem to work either (OnPaint calls my function too).
-nand
|
|
|
|
|
> tempdc.CreateCompatibleDC(&tempdc);
shouldnt this be:
tempdc.CreateCompatibleDC(&dc);
Also, do you need to do this?
card.CreateCompatibleBitmap(&tempdc,29,41);
I would think that it destroys the bitmap you loaded into it earlier.
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
> Also, do you need to do this?
> card.CreateCompatibleBitmap(&tempdc,29,41);
> I would think that it destroys the bitmap you loaded into it earlier.
Yes, what I'm trying to do here is overwrite whatever bitmap I drew previously with a new one from outside the OnPaint handler. This seems like the right thing to me.
Changing my call to tempdc.CreateCompatibleDC() doesn't appear to help - But it doesn't appear to break anything either.
-nand
|
|
|
|
|
Ok, let me rephrase myself
void CChildView::ShowKing(int facing) {
CPaintDC dc(this); // device context for painting
CDC tempdc;
CBitmap card;
if ( facing == 1 )
card.LoadBitmap(IDB_KINGRIGHT);
else
card.LoadBitmap(IDB_KINGLEFT);
card.CreateCompatibleBitmap(&tempdc,29,41);
// here you create a bitmap that is comaptible to an unintialized dc (ie a monocrome dc), and my guess is that you also overwrite whatever bitmapbits you loaded into the CBitmap object.
tempdc.CreateCompatibleDC(&tempdc);
// this should be done before you create a compatible bitmap.
tempdc.SelectObject(&card);
dc.BitBlt(113,3,14,16, &tempdc,0,0,SRCCOPY);
}
This should work better. If not, check your return value from LoadBitmap.
void CChildView::ShowKing(int facing)
{
CPaintDC dc(this); // device context for painting
CDC tempdc;
CBitmap card;
if ( facing == 1 )
card.LoadBitmap(IDB_KINGRIGHT);
else
card.LoadBitmap(IDB_KINGLEFT);
tempdc.CreateCompatibleDC(&dc);
tempdc.SelectObject(&card);
dc.BitBlt(113,3,14,16, &tempdc,0,0,SRCCOPY);
tempdc.RelaseDC()
dc.ReleaseDC()
}
Note: untested code, I dont have a dev.env. on this computer.
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
It doesn't help.
I tried a few more things and found that if I hide and then activate the application, the bitmap is redrawn as expected. Also if I display a messagebox, move it paritally over the bitmap, and dismiss it, the covered part will be updated - but not the uncovered part. It sounds almost like it's refusing to update the window, even though I'm painting in it. Does this help?
-nand
|
|
|
|
|