Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to realize FIND-function in class CHTMLView?

How to realize FIND-function in class CHTMLView?

Scheduled Pinned Locked Moved C / C++ / MFC
c++htmlhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bilas
    wrote on last edited by
    #1

    I'm not advanced in programming, so I need some help in my case I need to realize 2 function in my program: - load html-documents in window - organize function "Find..." that find text on this document. I did it in next way: I added in my project class CRightHTMLView, that has CHtmlView class as base class: class CRightHTMLView : public CHtmlView { ... } Than I load this class as right side of my splitted window in MainFrm.cpp: my_RightView = RUNTIME_CLASS( CRightHTMLView ); my_LeftView = RUNTIME_CLASS( CLeftView ); As result I have: +======+=============+ | | | | | | |CView | CHTMLView | | | | | | | +------+-------------+ Than I realised loading html files in right window. But do not know how to realize find-function, that must find text on loaded document. I have the next idea: send to Windows event "Ctrl+F", and than call this event everytime when user select the specified menu: File->Find... But I do not know how to do this. Maybe this is not the best way to find text. Actually, I think that class CHTMLView has specific function to search text. I'll be very thanksfull to everybody hwo can help me. It's really very important for me to finish my program as soon as I can. Thanks in advance, Bilas.

    S 1 Reply Last reply
    0
    • B bilas

      I'm not advanced in programming, so I need some help in my case I need to realize 2 function in my program: - load html-documents in window - organize function "Find..." that find text on this document. I did it in next way: I added in my project class CRightHTMLView, that has CHtmlView class as base class: class CRightHTMLView : public CHtmlView { ... } Than I load this class as right side of my splitted window in MainFrm.cpp: my_RightView = RUNTIME_CLASS( CRightHTMLView ); my_LeftView = RUNTIME_CLASS( CLeftView ); As result I have: +======+=============+ | | | | | | |CView | CHTMLView | | | | | | | +------+-------------+ Than I realised loading html files in right window. But do not know how to realize find-function, that must find text on loaded document. I have the next idea: send to Windows event "Ctrl+F", and than call this event everytime when user select the specified menu: File->Find... But I do not know how to do this. Maybe this is not the best way to find text. Actually, I think that class CHTMLView has specific function to search text. I'll be very thanksfull to everybody hwo can help me. It's really very important for me to finish my program as soon as I can. Thanks in advance, Bilas.

      S Offline
      S Offline
      Sheng Jiang
      wrote on last edited by
      #2

      http://support.microsoft.com/kb/q175513/[^]>] FILE: Invoke Find, View Source, Options Dialog Boxes for WebBrowser http://blog.joycode.com/jiangsheng http://blog.csdn.net/jiangsheng Command what is yours Conquer what is not ---Kane

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups