Click here to Skip to main content
15,909,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Loading custom dialogs from plug-in MFC DLL's Pin
Mark Salsbery24-Dec-06 8:09
Mark Salsbery24-Dec-06 8:09 
GeneralRe: Loading custom dialogs from plug-in MFC DLL's Pin
Chen Ganir24-Dec-06 8:24
Chen Ganir24-Dec-06 8:24 
GeneralRe: Loading custom dialogs from plug-in MFC DLL's Pin
Mark Salsbery24-Dec-06 8:41
Mark Salsbery24-Dec-06 8:41 
GeneralRe: Loading custom dialogs from plug-in MFC DLL's Pin
Chen Ganir24-Dec-06 8:58
Chen Ganir24-Dec-06 8:58 
QuestionObject or class member(s) as volatile Pin
bob1697224-Dec-06 6:09
bob1697224-Dec-06 6:09 
Questionwhat is correct way to update custom dialogbars in document/view? Pin
gor24-Dec-06 4:16
gor24-Dec-06 4:16 
AnswerRe: what is correct way to update custom dialogbars in document/view? Pin
Mark Salsbery24-Dec-06 6:13
Mark Salsbery24-Dec-06 6:13 
AnswerRe: what is correct way to update custom dialogbars in document/view? Pin
Cliff Hatch27-Dec-06 1:54
Cliff Hatch27-Dec-06 1:54 
gor wrote:
CMainFrame can see all the dialog bars and should be the one to update them based on the active document when the active document is changed.


I agree. I update dialog bars from CMainFrame in much the same way as you descibe, except that I make the functions public and call them directly from my view/doc classes instead of sending messages. I override CView::OnActivateView() to get the correct action when the current view is deactivated or a new view is activated. The only problem I had with this was coping with the counter-intuitive way the system sets the pActiveView and pDeactiveView parameters (I'm not sure if this is relevant to your enquiry, but I can provide a code sample if you are interested).

I don't know if this is the best approach, but I can vouch for the fact that it works, and that it deals with activation of views by conventional mouse clicks and custom code. It seems strange to me too that there is no function in the CMDIFrameWnd class that can be overridden to achieve this - if you ever discover a better way I would be very interested to hear.

Best Regards

Cliff
QuestionReal time voice playing and recording Pin
mt_samiei24-Dec-06 1:59
mt_samiei24-Dec-06 1:59 
AnswerRe: Real time voice playing and recording Pin
Mark Salsbery24-Dec-06 6:39
Mark Salsbery24-Dec-06 6:39 
Questionsafest compile options for release mode Pin
rp_suman24-Dec-06 0:28
rp_suman24-Dec-06 0:28 
AnswerRe: safest compile options for release mode Pin
Christian Graus24-Dec-06 1:23
protectorChristian Graus24-Dec-06 1:23 
GeneralRe: safest compile options for release mode Pin
rp_suman12-Apr-07 1:21
rp_suman12-Apr-07 1:21 
Questionpaticular project using MFC or not Pin
Mushtaque Nizamani23-Dec-06 20:32
Mushtaque Nizamani23-Dec-06 20:32 
AnswerRe: paticular project using MFC or not Pin
Michael Dunn23-Dec-06 21:14
sitebuilderMichael Dunn23-Dec-06 21:14 
GeneralRe: paticular project using MFC or not Pin
Mushtaque Nizamani25-Dec-06 21:29
Mushtaque Nizamani25-Dec-06 21:29 
QuestionPlease HELP Pin
irs9723-Dec-06 19:34
irs9723-Dec-06 19:34 
AnswerRe: Please HELP Pin
Waldermort23-Dec-06 19:55
Waldermort23-Dec-06 19:55 
GeneralRe: Please HELP Pin
irs9723-Dec-06 19:59
irs9723-Dec-06 19:59 
GeneralRe: Please HELP Pin
CPallini23-Dec-06 22:46
mveCPallini23-Dec-06 22:46 
GeneralRe: Please HELP Pin
irs9724-Dec-06 4:49
irs9724-Dec-06 4:49 
GeneralRe: Please HELP Pin
CPallini24-Dec-06 5:38
mveCPallini24-Dec-06 5:38 
GeneralRe: Please HELP Pin
irs9724-Dec-06 6:11
irs9724-Dec-06 6:11 
GeneralRe: Please HELP Pin
CPallini24-Dec-06 6:31
mveCPallini24-Dec-06 6:31 
AnswerRe: Please HELP Pin
Michael Dunn23-Dec-06 20:18
sitebuilderMichael Dunn23-Dec-06 20:18 

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.