CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Jun 2005
    Posts
    12

    Disabling a toolbar button with longish text

    Hello... I originally posted this in the Visual C++ forum by mistake, so I'm reposting here in a more appropriate forum. I apologize if you have read this before but I hope I get to the right people this time.


    I have recently added a new toolbar to my app -- a list/flat/transparent toolbar control. It is working fine in general, but I have encountered a problem when disabling a button that has longish text to the right of the icon.

    It seems that even though the toolbar is accurately remembering the width of my button, it is clipping the text when disabled *only*. Attached is a screenshot that demonstrates the problem.

    Though in the screenshot it seems that it gets cut off per letter, my original toolbar had letters cut off halfway.


    I have tried setting the draw text flag DT_CLIP and DT_CALCRECT, both seperately and together, but neither have resolved my issue.



    Has anybody experienced this before? Does anybody know a solution without customdrawing the toolbar?

    Thanks in advance,
    - Richard
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured