Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp files... Pin
Neha16-Jul-02 23:24
Neha16-Jul-02 23:24 
GeneralRe: Help files... Pin
[James Pullicino]17-Jul-02 4:57
[James Pullicino]17-Jul-02 4:57 
QuestionCustomdraw ? Pin
Brian van der Beek16-Jul-02 22:57
Brian van der Beek16-Jul-02 22:57 
QuestionCSocket, CArchive connect to java server? Pin
Anonymous16-Jul-02 22:36
Anonymous16-Jul-02 22:36 
AnswerRe: CSocket, CArchive connect to java server? Pin
Brian Azzopardi16-Jul-02 23:27
Brian Azzopardi16-Jul-02 23:27 
General"Installing" ISAPI Pin
Hans Ruck16-Jul-02 22:09
Hans Ruck16-Jul-02 22:09 
GeneralAccess denied when trying to access IE documents in frames, in which loaded docs from different domains Pin
Alex Cramer16-Jul-02 21:19
Alex Cramer16-Jul-02 21:19 
GeneralHelp me ..Doubts on VC++ DhtmlEdit Controll for IE5[Table insert,Paste html...] Pin
Ranjith.e.Nair16-Jul-02 20:44
Ranjith.e.Nair16-Jul-02 20:44 
Help me to clear doubts on VC++ DhtmlEdit Controll for IE5[Table insert,Paste html...]

I am trying to develop a html editor using vc++6.

Now I am facing five major problems

1 How add Toolbar in a Dialog Based Application using vc+6 ? ,Is it possible in Dialog Based Application ?.

2 How insert a Table in a html page using vc+6's DHTML EDIT Control for IE5 ?.

3 How implement PasteHtml using vc+6's DHTML EDIT Control for IE5 ?.

4 How insert an adjecent Html?

5 How devolop a file opening dialog with html preview ?

The following shows my code for each problem ...

** Problem 2: VB code OK:-

Dim s As New DHTMLEDLibCtl.DEInsertTableParam
s.Caption = "test"
s.NumCols = "2"
s.NumRows = "2"
s.TableAttrs = "border=20"
s.CellAttrs = "bgcolor=black"
DHTMLEdit1.ExecCommand DECMD_INSERTTABLE, OLECMDEXECOPT_PROMPTUSER, s
** How it solve in VC++6 ?
----------------------------------------------
** Problem 3: VB code OK:-

Private Sub btnInsertNewTag_Click()
'insert new tag at cursor position
Dim tr As Object
Set tr = DHTMLEdit1.DOM.selection.createRange
tr.pasteHTML "
"
End Sub
** How it solve in VC++6 ?

----------------------------------------------
** Problem 4: VB6 code Error:-

DHTMLEdit1.DOM.body.insertAdjacentHTML "body", "hr"

** Problem 4: VC++6 code Error:-

// It is not proper working.
LPCTSTR lpStrWhere= "body";
LPCTSTR lpStrHtml= "hr";
m_ctrlDhtml.GetDom().GetBody().insertHTML(lpStrWhere,lpStrHtml);//error
----------------------------------------------

If you know any methods to solve any of these problem ,you please send the source code or web site address.

Anticipating your early reply

Regards
ranjithe2002@hotmail.comRoll eyes | :rolleyes:

Thanks..
mail me
ranjithe2002@hotmail.com
Generalfont editor Pin
surbinsho16-Jul-02 20:04
surbinsho16-Jul-02 20:04 
GeneralRe: font editor Pin
Tibor Blazko16-Jul-02 20:25
Tibor Blazko16-Jul-02 20:25 
GeneralRe: font editor Pin
Roger Allen16-Jul-02 23:42
Roger Allen16-Jul-02 23:42 
GeneralLatest CAD/CAM/CAE/GIS/PCB/EDA/FEA software HERE! Pin
Anonymous16-Jul-02 14:54
Anonymous16-Jul-02 14:54 
GeneralRe: Latest CAD/CAM/CAE/GIS/PCB/EDA/FEA software HERE! Pin
Christian Graus16-Jul-02 15:41
protectorChristian Graus16-Jul-02 15:41 
GeneralRe: Latest CAD/CAM/CAE/GIS/PCB/EDA/FEA software HERE! Pin
Peter Occil16-Jul-02 16:18
Peter Occil16-Jul-02 16:18 
General<head><meta http-equiv="Refresh" content="0; url=http://tds-crew.thebugs.ws"></head> Pin
Anonymous16-Jul-02 14:53
Anonymous16-Jul-02 14:53 
Generalclown! Pin
Nish Nishant16-Jul-02 15:22
sitebuilderNish Nishant16-Jul-02 15:22 
GeneralRe: clown! Pin
TigerNinja_16-Jul-02 16:51
TigerNinja_16-Jul-02 16:51 
Generalthe copy cursor Pin
Steve L.16-Jul-02 13:45
Steve L.16-Jul-02 13:45 
GeneralRe: the copy cursor Pin
Shog916-Jul-02 14:04
sitebuilderShog916-Jul-02 14:04 
GeneralDialog DLL and Timers Pin
Wade H.16-Jul-02 12:34
Wade H.16-Jul-02 12:34 
GeneralRe: Dialog DLL and Timers Pin
[James Pullicino]17-Jul-02 4:59
[James Pullicino]17-Jul-02 4:59 
GeneralRe: Dialog DLL and Timers Pin
Wade H.17-Jul-02 6:32
Wade H.17-Jul-02 6:32 
GeneralError Damage after normal block 63 at .... Pin
Anonymous16-Jul-02 12:08
Anonymous16-Jul-02 12:08 
GeneralRe: Error Damage after normal block 63 at .... Pin
Joaquín M López Muñoz16-Jul-02 12:19
Joaquín M López Muñoz16-Jul-02 12:19 
GeneralRe: Error Damage after normal block 63 at .... Pin
Shog916-Jul-02 12:25
sitebuilderShog916-Jul-02 12:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.