Is this implementation correct? |
Post Reply |
Author | |||||
Michl
Senior Member Joined: 14 September 2007 Status: Offline Points: 138 |
Post Options
Thanks(0)
Posted: 05 February 2014 at 9:09am |
||||
Hello guys
I'm implements a own header style for a tabbed container. If the control paints itself, the overrideable method is calling:
There I apply the code from various existing themes:
I wondering why my line at bottom is never displayed. The reason is, that the result height of GetHeaderRect is 22 pixels, but bevor painting/drawing codejock selects a clip box of 21 pixels. In my opinion the header area should be fully visible if rcHeader indicates this. Further information of debbuging results: I found that the clip box will be calculated from top until the beginning of the client area of the pane. The top position of client area will be calculated in:
Here i'm disagree your logic. Why does the client area starts at rcHeader.bottom - 1??? So client and header is overlapped. It should be
I correct this overlapp by adding 2 margin pixels at top which will be added in:
Is this a bug or "by design"? Thanks |
|||||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |