robrichardson
Programmer
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();
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();