DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: How to Have Two Lines of Text On A CButton Label

  1. #1
    Elizabeth Guest

    How to Have Two Lines of Text On A CButton Label


    Hi,

    I want the CButton control to have two lines of text in its label. How can
    I do it? Thanks.

    -Elizabeth

  2. #2
    LPVOID Guest

    Re: How to Have Two Lines of Text On A CButton Label


    "Elizabeth" <chang.elizabeth@epa.gov> wrote:
    >
    >Hi,
    >
    >I want the CButton control to have two lines of text in its label. How

    can
    >I do it? Thanks.
    >
    >-Elizabeth


    When creating your button, insert BS_MULTILINE in DWORD dwStyle parameter
    in CButton::Create function.

    If you are using the API in WNDCLASS.style use the ...|BS_MULTILINE|... style.

    it will wrap the button text.

    LPVOID


  3. #3
    Join Date
    Jan 2008
    Posts
    1

    Thumbs up text in two lines

    Dim strbu As New StringBuilder
    strbu.AppendLine("Hello")

    strbu.AppendLine("Kiran")
    Button1.Text = strbu.ToString

  4. #4
    Join Date
    Nov 2003
    Posts
    4,118
    Any particular reason for raising a six years old thread from the dead?
    Danny Kalev

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center