ToolTip and owner draw CButtons
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: ToolTip and owner draw CButtons

  1. #1
    Join Date
    Jul 2003
    Posts
    260

    ToolTip and owner draw CButtons

    Hello,

    I have a rather confusing question that I hope someone can give me a clue. I have tried to add tool tips to a derived Groupbox from CButton class. It would be fine if I removed the owner draw flag, then the tooltip gets through, I would get the bulloon tip, but this becomes a problem when I tried to capture the screen, then the window would draw its version of the groupbox along with mine, so the text would be overlapped, not to mention the color is different. I removed BS_OWNERDRAW in the group box's PreSubclassWindow().

    I have searched google and codeguru and now I have no clue. Or can I trap the capture screen msg from windows and prevent it from drawing the default group box?

    Help help.

    Jiac

  2. #2
    Join Date
    Jul 2003
    Posts
    260

    Re: ToolTip and owner draw CButtons

    Still searching for potential workarounds.

    I essentially have 3 questions:
    1. Button with owner draw flag set, has anyone gotten tooltip to work with them?

    2. How to prevent window from doing its default drawing of the group box? i.e. what msg to trap?

    3. I could get tooltip to work with owner draw buttons, however, these don't always get notfied and the tooltip is the default type, not the one with the balloon. When I said it doesn't get notified, I mean placing the tooltip.activate(TRUE) OnInitDialog() doesn't work, but if I do a button click, then it would, However, even if it does, it is not the balloon style. Very strange for me.

    Thanks,
    Jiac

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center