|
hi,
can anyone help me in placing system wide hooks on WinCE APIs??
My requirement is to hook registry related APIs in WinCE.
Thanks in advance,
Regards,
Jinoj S
|
|
|
|
|
I have an application that has multiple CScrollViews defined in it. Everything works just fine in the one CScrollView right up to the point that I have to have scrollbars in the second view. At this point then neither scroll bar performs correctly.
I have set the properties of each scroll bar seperately in each views OnInitialUpdate() method. In these methods I calculate the vertical range of the scroll bars. Each view has its own OnVScroll method. When I only have a single scroll bar set in a view then I can reach both the upper limits and the lower limits of the scroll bar. However, when the second view comes into view and the scroll bar is set up I can no longer reach the lower limits of the first scroll bar.
Are these two views using any shared properties? Any ideas on where to start searching for the bug?
Thanks,
-Eric
|
|
|
|
|
My first option would be to look into the view updating mechanism. Is it possible that one view is being updated (via OnUpdate ) with data that is meant for the other?
Regards,
João Paulo
|
|
|
|
|
Hi there. Couldn't decide whether to post this in the Embedded/Mobile forum or the COM forum. Plumped for this one, hope it's reasonably on-topic.
I am looking at writing a new Pocket PC 2003 app using the .NET Compact Framework. Pretty excited, as this is a "step up" from using the eVC++ 3.0 tools that I have been using for the past few years.
One of the requirements of the new app is that it will have a customised SIP--basically to have much larger key buttons so as to allow entering data using a (fat) finger. On Pocket PC 2002 that I have previously worked on, this involved writing a COM object DLL implementing the IInputMethod interface, and having the DLL register itself when installing the CAB. Then, in the actual application, the COM object would be instanciated using CoCreateInstance() .
Using .NET CF, I am not able to write COM objects, is that right? Which means I would have to "drop down" to using eVC++ 4.0 (4.0 rather than 3.0, in order to target PPC2003) to write the COM object. Then, in the .NET CF application, I would need to use a combination P/Invoke and a COM-object-DLL-wrapper to "get at" the custom SIP that I implement in the above DLL. Does this make sense to you, and do you think I'm on the right track?
I guess I'm really just asking so that I know what is possible, and to confirm that I am indeed heading in right direction...
Any feedback would be much appreciated.
Cheers,
Jon
|
|
|
|
|
You are correct. .NETCF does not support COMponent bridge. My preference would be as you said, to create a wrapper for the COMponent and PInvoke through it.
Regards,
Ron Miller
|
|
|
|
|
I have a dialog based application using a HTML control:
...
m_HtmlViewInstance = ::LoadLibrary(L"htmlview.dll");
VERIFY(InitHTMLControl(AfxGetInstanceHandle()));
DWORD dwStyle = WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS;
RECT rect;
GetClientRect(&rect);
m_hwndHtml = ::CreateWindow (DISPLAYCLASS,NULL,dwStyle,rect.left,rect.top,
rect.right,rect.bottom,m_hWnd,0,m_HtmlViewInstance,
NULL);
::SetWindowLong(m_hwndHtml, GWL_ID, 12321);
::SetFocus (m_hwndHtml);
::SendMessage(m_hwndHtml, WM_SETTEXT, 0, (LPARAM)(LPCTSTR)_T(""));
...
etc..
Anyone knows how to specify the HTMLctrl to translate using UTF-8?
|
|
|
|
|
Hello all !!
I have a SDI application (using form view) and I would like several views that can be switched via the toolbar (a single view is shown at once).
Every view has it's own class and own 'window' and must be linked to the document.
Any hints for doing this simply ??
Thanks
Cedric Moonen
|
|
|
|
|
|
|
|
Ok, nice!!
Thanks !
I think I will take the third solution because I just want my views to be hidden and not destroyed.
Again, thanks!
Cedric
|
|
|
|
|
HI,
Can anyone help how to popup a dialog in a half screen for PPC.
When i give dialogs.m_bFullScreen = false..then the dialog is displayed horizontally occupying client center area and ok/cancel button are hidden
making the user to scroll dialog horizontally to get the ok buttons.
Pls help..how to get rid of this
Thnks in advance
|
|
|
|
|
Just a hint, maybe create your own Dialog class derived from CDialog ??
Then use CenterWindow().
Hope this helps
|
|
|
|
|
Hi!
Is the a way that I can display an event (or highlight event date) in the mobile web calendar reading from database using visual basic.
|
|
|
|
|
I have a scroll view implemented in my app and have a question. Currently my scroll bars go from the top of the screen to the bottom of the screen. What I would like to do is have a spot at the top of the screen to be say a title section. I need to have this section not be repainted everytime a WM_PAINT message is sent, only the below it needs to be repainted. So the question is, how do I create such a non-client area inside this ScrollView?
Thanks,
-Eric
|
|
|
|
|
My best bet would be to create a toolbar-like control where you only write the title. The toolbar will be a child of the frame window (sibling of the view), so you wouldn't have to change a single line of code in your view class.
Let me prepare a simple example to post.
Regards,
João Paulo
|
|
|
|
|
I have already sent the QA to www.pocketpcdn.com to be published. In any case, would you like to receive an email from me with the sample code?
Regards,
João Paulo
|
|
|
|
|
João,
Thanks for the code sample. After looking at it a bit this morning I have a few additional questions.
1. In my app I have multiple views defined. Only one of the views is currently a CScrollView class. I have only included the CeTitelBar object inside this one class, but yet it appears as a title above all of the views in my app. How can I get it to only show up in the once class that it is defined in? When I created the CeTitleBar object I used GetParent(), should I have used something else?
2. I need to have more control over the placement of the text inside the title and I need to be able to change the size of the title bar. I think I can see where to change the code to make the changes to the height of the bar, but I need to have multiple lines inside the title bar, some with Bold text some with underlined text etc.
3. Last I would like the title bar to be the same color as my view. This may relate to the second question above.
I am going to continue to play around with it this morning, but any help is appreciated. Again thanks for the initial help!
-Eric
|
|
|
|
|
VanHlebar wrote:
How can I get it to only show up in the once class that it is defined in?
When the view is destroyed or hidden, you have to destroy / hide the title bar.
VanHlebar wrote:
When I created the CeTitleBar object I used GetParent(), should I have used something else?
No. You are using the correct parent (the frame window). Remember that the title bar is a toolbar and toolbar have to be children of the main frame.
VanHlebar wrote:
I need to have more control over the placement of the text inside the title and I need to be able to change the size of the title bar.
This class serves a very simple purpose: shows a single line of text. I'm sure you can create your own title bar class by redefining the drawing code and height (you may use m_nHeight ). You have the basic mechanisms. Now, have some fun experimenting with it!
Regards,
João Paulo
|
|
|
|
|
João,
Thanks again for all the help. I added a few features to your base class to allow the users to change the height, text color and background color of the title bar on the fly. If you want to see those changes I can post them or email them to you.
I ended up having to play around with the OnPaint() to get my multiple lines of text into the Title Bar. It works for my application, but would not be very handy for general use. If I figure out a way to fix it I will post it here.
I am also looking into a way to allow the user to change the Font used on the fly also.
Thanks again,
-Eric
|
|
|
|
|
VanHlebar wrote:
I am also looking into a way to allow the user to change the Font used on the fly also.
If you want a font chooser, check this:
A font chooser dialog for the Pocket PC[^]
Regards,
João Paulo
|
|
|
|
|
|
Hello all,
EVC3 (hpcpro) and EVC4 (standardsdk)
I would like to add a bimtmap to one of my popup menus...
I know that the MENUITEMINFO struct is not as sophisticated in CE as desktop windows, but there are two HBITMAP members of this struct for the "checked" state.
This seems fine for what I'm after, as I could just "check" the item I want to have the bitmap, and continue on with more productive coding...
For the life of me however, I can't make a successful call to SetMenuItemInfo with the struct containing the HBITMAP values. The error code return by windows is ERROR_INVALID_PARAMETER.
I know what I am trying to accomplish is not unheard of, so any tips is most appreciated!
|
|
|
|
|
I need to write a simple page to display a list of data. I don't think this should be too tricky but I would like to view it in an emaulator to see how it will appear on a phone. Is there a built in emulator with VS.NET 2003 and how do I run it?
I would also like the user to log on using their mobile number - how can I achieve this - is it similar to normal asp.net forms authentication, any articles out there on the web?
Any hints, web addresses, help would be most welcome.
Jim
|
|
|
|
|
We have Wise installation System and it doesn't support PPC2K.
We found a $30 installer program on the net written by an outfit called Wildcat Solutions. Anyone use that one? Any other recommendations?
------- 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
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|