Solved

Controls in a DLL with 3D appearance

Posted on 1998-07-01
6
197 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
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 35
How to determine file rename from EventLog ? 2 54
lucky13 challenge 11 153
MaxSpan challenge 9 104
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.

808 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