Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OL:E at runtime

Status
Not open for further replies.

robrichardson

Programmer
Mar 14, 2001
86
GB
I have the following code, basically wordCont is an OLE Container which is created at runtime, element.elem_loc is a filename (e.g. a word document) I have no problems creating the container however I can't seem to edit the icons label it just appears "document"

wordCont = new TOleContainer(this);
wordCont->Parent=Scroll3;
wordCont->Height=105;
wordCont->Width=105;
wordCont->Left=wordleft_pos;
wordCont->Top=wordtop_pos;
wordCont->CreateLinkToFile(element.elem_loc,true);

I know that the following statement will open a dialog box to change the name but thats no use.

Any ideas?
wordCont->ChangeIconDialog();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top