Click here to Skip to main content
16,008,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting problem in writing windows service [ ERROR 1053 ] Pin
netprotector31-Mar-09 20:08
netprotector31-Mar-09 20:08 
AnswerRe: Getting problem in writing windows service [ ERROR 1053 ] Pin
Soumyadipta14-May-08 4:23
Soumyadipta14-May-08 4:23 
QuestionMFC application crashes @ ConnectionTransact of DBNMPNTW.DLL Pin
Arun Kuriyakkotte Ramachandran13-May-08 19:13
Arun Kuriyakkotte Ramachandran13-May-08 19:13 
AnswerRe: MFC application crashes @ ConnectionTransact of DBNMPNTW.DLL Pin
kasturi_haribabu13-May-08 19:25
kasturi_haribabu13-May-08 19:25 
QuestionApplication gets slower when having ~50 dialogs in memory. Pin
Paresh Chitte13-May-08 19:07
Paresh Chitte13-May-08 19:07 
AnswerRe: Application gets slower when having ~50 dialogs in memory. Pin
Steve Echols13-May-08 19:26
Steve Echols13-May-08 19:26 
GeneralRe: Application gets slower when having ~50 dialogs in memory. Pin
Paresh Chitte13-May-08 20:19
Paresh Chitte13-May-08 20:19 
GeneralRe: Application gets slower when having ~50 dialogs in memory. Pin
Nelek13-May-08 21:28
protectorNelek13-May-08 21:28 
I had the same problem when creating the parameter-dialogs for each element, when I had 20+ elements and tryed to open them the app was freezing. I got it improved by removing the CDialogs and using CFormViews, duplicating the views as I needed them. It gives more performance, more speed and more functionality (i.e. UpdateAllViews ()).


Paresh Chitte wrote:
How could I share the dialogs across two documents ?


At the same time you are not going to be able of that. If you open the window for a document you should close it and reopen for another document. Or delete the contents of all elements and then fill them with the datas of the second element.

I made it adding a CMyDoc* pointer to the "parent" document as member variable in the CFormView, when I double-clicked on an element to be parametrized, then I got the document pointer in the CMyView and sent it to the CFormView of that element at the end of the opening process. Then used the OnInitialUpdate () to fill all the elements with the datas of the document.

You can check
this
[^] and this[^] posts to have a look of what I made.

Hope it helps Smile | :)

Greetings.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

GeneralRe: Application gets slower when having ~50 dialogs in memory. Pin
Paresh Chitte14-May-08 0:02
Paresh Chitte14-May-08 0:02 
QuestionProblem in Mapping Memory(win98,P4) Pin
Srinivas Reddy CH13-May-08 19:01
Srinivas Reddy CH13-May-08 19:01 
Question[Message Deleted] Pin
projectip13-May-08 18:59
projectip13-May-08 18:59 
AnswerRe: Marking region of interest Pin
Iain Clarke, Warrior Programmer13-May-08 22:06
Iain Clarke, Warrior Programmer13-May-08 22:06 
QuestionRe: Marking region of interest Pin
CPallini13-May-08 22:21
mveCPallini13-May-08 22:21 
AnswerRe: Marking region of interest Pin
projectip13-May-08 23:53
projectip13-May-08 23:53 
GeneralRe: Marking region of interest [modified] Pin
CPallini13-May-08 23:55
mveCPallini13-May-08 23:55 
GeneralRe: Marking region of interest Pin
Rajesh R Subramanian14-May-08 1:06
professionalRajesh R Subramanian14-May-08 1:06 
GeneralRe: Marking region of interest Pin
CPallini14-May-08 1:45
mveCPallini14-May-08 1:45 
GeneralRe: Marking region of interest Pin
Iain Clarke, Warrior Programmer14-May-08 1:59
Iain Clarke, Warrior Programmer14-May-08 1:59 
GeneralRe: Marking region of interest Pin
projectip14-May-08 17:40
projectip14-May-08 17:40 
GeneralRe: Marking region of interest Pin
Iain Clarke, Warrior Programmer14-May-08 22:49
Iain Clarke, Warrior Programmer14-May-08 22:49 
GeneralRe: Marking region of interest Pin
projectip15-May-08 1:03
projectip15-May-08 1:03 
QuestionHow to connect Child form to MDI Form in c#.net Pin
Manish Kant13-May-08 17:43
Manish Kant13-May-08 17:43 
AnswerRe: How to connect Child form to MDI Form in c#.net Pin
Rajesh R Subramanian13-May-08 19:06
professionalRajesh R Subramanian13-May-08 19:06 
AnswerRe: How to connect Child form to MDI Form in c#.net Pin
Hamid_RT14-May-08 6:34
Hamid_RT14-May-08 6:34 
QuestionImage List Inhancement needed Pin
vinod marathe13-May-08 17:41
vinod marathe13-May-08 17:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.