• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • 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????
0
opacios
Asked:
opacios
1 Solution
 
chackoCommented:
You can probably try in the dialog template itself to set the parameter. You can do it in the oncreate method.
0
 
opaciosAuthor Commented:
I've tried it but it doesn't work. Any other suggestions?
0
 
opaciosAuthor Commented:
I'm afraid i've rejected your answer, chacko. It wasn't my intention....

Thank you very much for your attention.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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

AFX_MANAGE_STATE(AfxGetModuleState());

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

0
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

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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