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. How can i use Createpen ?

How can i use Createpen ?

Scheduled Pinned Locked Moved Mobile
questionhelp
8 Posts 3 Posters 0 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.
  • M Offline
    M Offline
    matthewtsai
    wrote on last edited by
    #1

    CPen myPen; LOGBRUSH logBrush; logBrush.lbStyle = BS_SOLID; logBrush.lbColor = RGB(128,128,128); myPen.CreatePen(PS_DOT|PS_GEOMETRIC|PS_ENDCAP_ROUND,20,&logBrush); Why EVC always tell me 'PS_DOT' : undeclared identifier 'PS_GEOMETRIC' : undeclared identifier 'PS_ENDCAP_ROUND' : undeclared identifier Can anyone help me thx ^^:eek:

    D 1 Reply Last reply
    0
    • M matthewtsai

      CPen myPen; LOGBRUSH logBrush; logBrush.lbStyle = BS_SOLID; logBrush.lbColor = RGB(128,128,128); myPen.CreatePen(PS_DOT|PS_GEOMETRIC|PS_ENDCAP_ROUND,20,&logBrush); Why EVC always tell me 'PS_DOT' : undeclared identifier 'PS_GEOMETRIC' : undeclared identifier 'PS_ENDCAP_ROUND' : undeclared identifier Can anyone help me thx ^^:eek:

      D Offline
      D Offline
      Daniel Strigl
      wrote on last edited by
      #2

      Windows CE supports only PS_SOLID, PS_DASH and PS_NULL style flags! Cheers, Daniel. -- FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE. ;)

      M J 2 Replies Last reply
      0
      • D Daniel Strigl

        Windows CE supports only PS_SOLID, PS_DASH and PS_NULL style flags! Cheers, Daniel. -- FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE. ;)

        M Offline
        M Offline
        matthewtsai
        wrote on last edited by
        #3

        How can i Create a " PS_ENDCAP_ROUND" style Pen, can u tell me ? thx a lot ^^

        J 1 Reply Last reply
        0
        • D Daniel Strigl

          Windows CE supports only PS_SOLID, PS_DASH and PS_NULL style flags! Cheers, Daniel. -- FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE. ;)

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

          ... a bewildering number of choices... X| It's easy to simulate PS_DOT for vertical or horizontal lines, but for slanted lines, we are talking about something else... Regards, João Paulo

          M 1 Reply Last reply
          0
          • M matthewtsai

            How can i Create a " PS_ENDCAP_ROUND" style Pen, can u tell me ? thx a lot ^^

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

            You will have to write code for that... X| Regards, João Paulo

            1 Reply Last reply
            0
            • J Joao Paulo Figueira

              ... a bewildering number of choices... X| It's easy to simulate PS_DOT for vertical or horizontal lines, but for slanted lines, we are talking about something else... Regards, João Paulo

              M Offline
              M Offline
              matthewtsai
              wrote on last edited by
              #6

              In EVC Draw a Line Always Flat Cap but i want draw a line that is round Cap, how can i do ? can u tell me about this ? thx a lot ^^ ps. my english not very good i hope u can know what i say :rolleyes:

              J 1 Reply Last reply
              0
              • M matthewtsai

                In EVC Draw a Line Always Flat Cap but i want draw a line that is round Cap, how can i do ? can u tell me about this ? thx a lot ^^ ps. my english not very good i hope u can know what i say :rolleyes:

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

                There is no way to do it unless you do it by yourself (implementing a line drawing algorithm)... Regards, João Paulo

                M 1 Reply Last reply
                0
                • J Joao Paulo Figueira

                  There is no way to do it unless you do it by yourself (implementing a line drawing algorithm)... Regards, João Paulo

                  M Offline
                  M Offline
                  matthewtsai
                  wrote on last edited by
                  #8

                  Although,There is no way to do this,I still thx for ur answer ><"

                  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