Solved

Controls in a DLL with 3D appearance

Posted on 1998-07-01
6
190 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 47
Replacement selected text 2 47
zeroFront challenge 7 71
wordmultiple challenge 12 90
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 …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

706 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now