Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ DrawString() and printing Pin
Roger Allen14-Nov-03 4:22
Roger Allen14-Nov-03 4:22 
GeneralNeed step by step help for creating windows nt services Pin
Aswin14-Nov-03 1:22
Aswin14-Nov-03 1:22 
GeneralRe: Need step by step help for creating windows nt services Pin
Ravi Bhavnani14-Nov-03 3:08
professionalRavi Bhavnani14-Nov-03 3:08 
GeneralNeed step by step help for creating windows nt services Pin
Aswin14-Nov-03 1:21
Aswin14-Nov-03 1:21 
GeneralUsing VB dll in C++ Pin
Killen14-Nov-03 1:00
Killen14-Nov-03 1:00 
GeneralRe: Using VB dll in C++ Pin
Adam Gritt14-Nov-03 3:17
Adam Gritt14-Nov-03 3:17 
GeneralRe: Using VB dll in C++ Pin
Killen16-Nov-03 23:16
Killen16-Nov-03 23:16 
GeneralInserting Image Pin
rld7714-Nov-03 0:35
rld7714-Nov-03 0:35 
hi,
I am trying to insert an image in HTML page at the place where currently cursor is,
when the user clicks my toolbar button.
It does insert it but after inserting the image, the cursor
is not coming up.
I need to have the cusror come up next to the image. So that I can
type some text.

this is the piece of code i am using:

CComPtr<ihtmldocument2> spDoc;
/////
////some more code for getting spDoc
//////

//Here is the code for inserting image
CComBSTR cmd = _T("InsertImage");
spDoc->execCommand(cmd, FALSE,CComVariant(myImage) ,0);


CComPtr<ihtmlselectionobject> selectObj;
spDoc->get_selection(&selectObj);
if (selectObj)
{
selectObj->empty();
CComPtr<idispatch> iDispRange;
selectObj->createRange(&iDispRange);
CComQIPtr<ihtmltxtrange> range(iDispRange);
if (range)
{
range->select();
range->collapse(false);
}
}

///////////////////////////////////////

What happens is cursor always comes at the start of the document.

Can anyone tell me how can I get that done ?

Regards
Raj
GeneralCComboBox populating doesn't work. Pin
Member 70440714-Nov-03 0:29
Member 70440714-Nov-03 0:29 
GeneralRe: CComboBox populating doesn't work. Pin
Rage14-Nov-03 2:12
professionalRage14-Nov-03 2:12 
GeneralRe: CComboBox populating doesn't work. Pin
Prakash Nadar14-Nov-03 2:49
Prakash Nadar14-Nov-03 2:49 
GeneralTo draw something over a Browser Hosted application Window Pin
csylesh14-Nov-03 0:24
csylesh14-Nov-03 0:24 
GeneralRe: To draw something over a Browser Hosted application Window Pin
Ceri14-Nov-03 0:53
Ceri14-Nov-03 0:53 
QuestionHow can I place an icon in an menu Pin
Anonymous14-Nov-03 0:13
Anonymous14-Nov-03 0:13 
AnswerRe: How can I place an icon in an menu Pin
Simon.W14-Nov-03 0:28
Simon.W14-Nov-03 0:28 
GeneralRe: How can I place an icon in an menu Pin
SuperRon200316-Nov-03 19:32
SuperRon200316-Nov-03 19:32 
GeneralRe: How can I place an icon in an menu Pin
Simon.W16-Nov-03 20:11
Simon.W16-Nov-03 20:11 
GeneralRe: How can I place an icon in an menu Pin
SuperRon200317-Nov-03 22:09
SuperRon200317-Nov-03 22:09 
GeneralNamed Pipes access accross network Pin
Ceri14-Nov-03 0:01
Ceri14-Nov-03 0:01 
GeneralRe: Named Pipes access accross network Pin
Anand Paranjpe14-Nov-03 0:17
Anand Paranjpe14-Nov-03 0:17 
GeneralRe: Named Pipes access accross network Pin
Ceri14-Nov-03 0:40
Ceri14-Nov-03 0:40 
GeneralSearch in File Pin
Rage13-Nov-03 23:50
professionalRage13-Nov-03 23:50 
GeneralRe: Search in File Pin
valikac14-Nov-03 5:19
valikac14-Nov-03 5:19 
QuestionTAPI 3 COM based help ??? Pin
Ghulam Mujtaba13-Nov-03 23:09
Ghulam Mujtaba13-Nov-03 23:09 
AnswerRe: TAPI 3 COM based help ??? Pin
Michael P Butler13-Nov-03 23:41
Michael P Butler13-Nov-03 23:41 

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.