CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005
    Posts
    767

    MultiLine Tab Control and XP theme drawing

    Hello All,
    I seem to be facing a weird problem with tab control and XP themes. Please find test sample.

    Some strange points to be noted:
    1) Problem only occurs with 'Multiline' option set on XP with theme drawing enabled
    2) Problem only occurs with the tab items on the bottom row (assuming tab control has 2 rows)
    3) Problem only occurs if we try to resize the tab control.

    It seems that some how a redraw message is not sent to the child windows under certain conditions however force redraw does not seem to help either.

    Thanks a lot for the help.
    Last edited by MrBeans; June 2nd, 2010 at 04:25 AM.
    One's mistake cannot be your excuse!

  2. #2
    Join Date
    Jul 2005
    Posts
    767

    Re: MultiLine Tab Control and XP theme drawing

    Ok, for those interested I found a solution or rather a Workaround.

    You will need to use UpdateWindow API on the child window in Paint handler of the parent window (may be Tab control in this case)
    One's mistake cannot be your excuse!

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