?
Solved

Controls in a DLL with 3D appearance

Posted on 1998-07-01
6
Medium Priority
?
209 Views
Last Modified: 2013-11-20
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
Comment
Question by:opacios
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Expert Comment

by:chacko
ID: 1318576
You can probably try in the dialog template itself to set the parameter. You can do it in the oncreate method.
0
 

Author Comment

by:opacios
ID: 1318577
I've tried it but it doesn't work. Any other suggestions?
0
 

Author Comment

by:opacios
ID: 1318578
I'm afraid i've rejected your answer, chacko. It wasn't my intention....

Thank you very much for your attention.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 7

Expert Comment

by:galkin
ID: 1318579
Did you call Enable3dControls() from EXE that loads your DLL
0
 

Author Comment

by:opacios
ID: 1318580
Yes, I did it. I think the problem is that the controls are created in runtime...
0
 
LVL 1

Accepted Solution

by:
sudhirbrat earned 300 total points
ID: 1318581
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question