Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Thin blue line XP style border
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Thin blue line XP style border

 Post Reply Post Reply
Author
Message
ReyesRP View Drop Down
Groupie
Groupie


Joined: 30 January 2008
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote ReyesRP Quote  Post ReplyReply Direct Link To This Post Topic: Thin blue line XP style border
    Posted: 10 March 2008 at 5:54pm
I've got CXTPReportControls on several dialogs and all draw their border 3D sunken style instead of with the thin blue line border used for all of the  built-in Windows controls (XP). Regardless of what border style I set in the RC (WS_BORDER, WS_EX_CLIENTEDGE, WS_EX_STATICEDGE), I'm still not getting the thin blue line style border.
 
What do I need to do to get the thin blue line border?
Back to Top
ReyesRP View Drop Down
Groupie
Groupie


Joined: 30 January 2008
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote ReyesRP Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2008 at 11:32am
This seems to work, but IMHO, it is a bug that the border does not render to the active Windows theme by default.
 
Derive your CXTPReportControl like this:
 
class MyReportControl : public CXTPOfficeBorder<CXTPReportControl>

then in the constructor call:

XTPPaintManager()->SetTheme( xtpThemeNativeWinXP );

Back to Top
ReyesRP View Drop Down
Groupie
Groupie


Joined: 30 January 2008
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote ReyesRP Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2008 at 12:10pm
Actually that only sorta works. I'm getting spurrious dots being drawn in the NC area... Also the scroll bar is drawn inset from the edge...
 
Put in a support issue.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.195 seconds.