How to realize FIND-function in class CHTMLView?
-
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.
-
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.
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