Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Strip markup tags
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Strip markup tags

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Strip markup tags
    Posted: 12 September 2008 at 5:33am
How do I strip markup tags? Is there such a function?
 
Sometimes, my tagged strings have not been saved in their "clean" state so I need to remove all tags somehow.
 
Any ideas?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 15 September 2008 at 5:39am
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2008 at 7:25am
Thanks, but I'm not sure how to use that technique with CXTPTaskDialog. I want to get the inner text from all elements to implement Ctrl+C functionality.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 15 September 2008 at 10:26am
Hi,
 
Catch WM_KEYDOWN,
Check Ctrl+C,
Get Top MarkupElement with m_strContent.m_pUIElement and
get text from it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2008 at 9:38am
Thanks, will check m_strContent.m_pUIElement. Couldn't find it before :P
 
FYI, OnKeyDown will not do the trick when a button has focus. PreTranslateMessage is the way to go, and bComCtl32 must be set to FALSE! :)
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.141 seconds.