• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

Controls in a DLL with 3D appearance

I've got a splitter window in a DLL. One of its panes is a CFormView, where I have to dynamically create edit and combo boxes in runtime. The controls appear but they do not present the 3DCTL appearance. I set the 3DCTL property of the form view with no results. Then i tried with the Enable3dControls() function, getting an assertion "This function cannot be called from a DLL".

How can i get 3d controls????
1 Solution
You can probably try in the dialog template itself to set the parameter. You can do it in the oncreate method.
opaciosAuthor Commented:
I've tried it but it doesn't work. Any other suggestions?
opaciosAuthor Commented:
I'm afraid i've rejected your answer, chacko. It wasn't my intention....

Thank you very much for your attention.
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Did you call Enable3dControls() from EXE that loads your DLL
opaciosAuthor Commented:
Yes, I did it. I think the problem is that the controls are created in runtime...
Try calling the below line in your code just before creating the controls from a DLL.


Remember this line and the creation of control code sholud be in the same function.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now