Solved

Controls in a DLL with 3D appearance

Posted on 1998-07-01
6
202 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
Technology Partners: 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!

 
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 150 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

707 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