Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPControlEdit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlEdit

 Post Reply Post Reply
Author
Message
andy_t View Drop Down
Newbie
Newbie


Joined: 19 October 2004
Location: Norway
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote andy_t Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlEdit
    Posted: 15 January 2005 at 6:08am

Hi,

I've added a CXTPControlEdit to a toolbar, but I'm having trouble setting the font for the edit control. In fact, when I set the font or call ModifyStyle on the edit control, nothing changes. I can override the CXTPControlEdit create call to create the edit control with my own flags, but I still can't set the font. Anyone know a way around this?

.andy

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2005 at 12:04am
The font set in CXTPPaintManager::DrawControl. try to override it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
andy_t View Drop Down
Newbie
Newbie


Joined: 19 October 2004
Location: Norway
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote andy_t Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2005 at 7:19am

Yeah, guess so, though it would be nice if DrawControl was declared virtual. But it's still a little messy if I want different fonts for different edit controls. I'm handling it right now by having a custom CXTPControlEdit class that simply ignores the WM_SETFONTs it doesn't like...

thanks for the help!
.andy

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.047 seconds.