Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. "Button-bar" like in the CE-Addressbook

"Button-bar" like in the CE-Addressbook

Scheduled Pinned Locked Moved Mobile
question
4 Posts 2 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Frank S
    wrote on last edited by
    #1

    Hi, how is that "Button-bar" (#ab|cde|...|xyz) at the top of the CE-addressbook programmed? That would interest me, because it's fine for scrolling in a listbox. Greetings, Frank _____ easySMS for pocket PC _____ www.Siedler-Net.de/WinCE/easySMS/

    J 1 Reply Last reply
    0
    • F Frank S

      Hi, how is that "Button-bar" (#ab|cde|...|xyz) at the top of the CE-addressbook programmed? That would interest me, because it's fine for scrolling in a listbox. Greetings, Frank _____ easySMS for pocket PC _____ www.Siedler-Net.de/WinCE/easySMS/

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      Check my article on that issue. It's a simple approach to that problem. Hope you find it useful. http://www.codeproject.com/useritems/CLetterStrip.asp[^] Cheers.

      F 1 Reply Last reply
      0
      • J Joao Paulo Figueira

        Check my article on that issue. It's a simple approach to that problem. Hope you find it useful. http://www.codeproject.com/useritems/CLetterStrip.asp[^] Cheers.

        F Offline
        F Offline
        Frank S
        wrote on last edited by
        #3

        Yep, that looks good!! But how can i run that codesample with my Embedded Visual C++ ? Therefor a Project is needed!? Greetings, Frank _____ easySMS for pocket PC _____ www.Siedler-Net.de/WinCE/easySMS/

        J 1 Reply Last reply
        0
        • F Frank S

          Yep, that looks good!! But how can i run that codesample with my Embedded Visual C++ ? Therefor a Project is needed!? Greetings, Frank _____ easySMS for pocket PC _____ www.Siedler-Net.de/WinCE/easySMS/

          J Offline
          J Offline
          Joao Paulo Figueira
          wrote on last edited by
          #4

          Right. Do this: In your CChildWnd, declare the following:

          protected:
          CLetterStrip m_wndStrip;

          In the OnCreate handler, create the window. To place it on the top, just like the image on the article, use the following:

          DWORD dwStyle = WS_CHILD | WS_VISIBLE;
          m_wndStrip.Create(dwStyle, CPoint(0, 0), this, ID_LETTERSTRIP);

          To handle the letter commands, use the following message map:

          BEGIN_MESSAGE_MAP(CChildView, CWnd))
          //{{AFX_MSG_MAP(CWordList)
          ...
          ON_COMMAND(ID_LETTERSTRIP, OnLetterStrip)
          ...
          //}}AFX_MSG_MAP
          END_MESSAGE_MAP()

          In the OnLetterStrip method, use m_wndStrip.GetOption() to retrieve the selected letter. Note that the letter strip is created as a child window, not as a toolbar.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups