How can I replicate the Address Input from PocketPC Contacts?

  • Thread starter Thread starter Russ Ryba
  • Start date Start date
R

Russ Ryba

I wonder if anyone out there could help me understand how Microsoft
implemented the address field in the contacts application. I have a
textbox, but the way they did things in Edit Contacts looks much more
professional.

It looks like a textbox without borders, but there is also a little
arrow to the right that pops up a subform or overlapping panel that lets
the user specify what the street, city, state, zip are. I've checked
with CE Remote Spy and I see the control is Class CAPEDIT. I didn't
find anything in my VS2003 MSDN, and only a single article in the online
MSDN. I'm looking for pointers on how to add a CAPEDIT control to my
application.

I'm hoping it's not something else like RichInk/InkX that exists but is
mostly undocumented and difficult to use.

This is the only link I've found
http://msdn.microsoft.com/library/d...p/html/sp_programming_pocket_pc_2002_pxeh.asp

Thanks for any help on this.

- Russ Ryba
 
You may create managed wrapper for CAPEDIT control using the technique
described in this article [1]. Also here you are a small example that
creates this control (notice that example uses OpenNETCF library):

....
ControlMessageWindow _wnd;

public CapEditControl()
{
SHInitExtraControls();
_wnd = new ControlMessageWindow(this, "CAPEDIT");
...
}

[DllImport("aygshell.dll")]
internal extern static void SHInitExtraControls();

[1]
http://www.opennetcf.org/PermaLink.aspx?guid=905b2ec3-b8ae-4e65-bb22-7e7545d31816

Sergey Bogdanov
http://www.sergeybogdanov.com
 
Back
Top