Click here to Skip to main content
16,010,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Weird Problem Pin
Christian Graus21-Nov-01 13:21
protectorChristian Graus21-Nov-01 13:21 
GeneralRe: Weird Problem Pin
Rashid Thadha22-Nov-01 1:27
Rashid Thadha22-Nov-01 1:27 
GeneralRe: Weird Problem Pin
21-Nov-01 13:41
suss21-Nov-01 13:41 
Generalexecuting files ie file manager Pin
21-Nov-01 7:41
suss21-Nov-01 7:41 
GeneralRe: executing files ie file manager Pin
Joaquín M López Muñoz21-Nov-01 8:06
Joaquín M López Muñoz21-Nov-01 8:06 
QuestionSeeking in CMemFile...? Pin
21-Nov-01 7:29
suss21-Nov-01 7:29 
GeneralToolbars and MDI Apps Pin
Chambers21-Nov-01 6:20
Chambers21-Nov-01 6:20 
GeneralRe: Toolbars and MDI Apps Pin
Roger Allen21-Nov-01 7:17
Roger Allen21-Nov-01 7:17 
I would recommend keeping the list of changes you have made in the document object. Then wehn tyhe user switches document, (or toa different view), you can handle the OnSetActive of that view and populate the combo box in the toolbar. Something like:

void CMyView::OnSetActive(bool m_bActivate)
{
if (m_bActivate)
{
CComboBox* pCombo = &((CMainFrame*)(AfxGetApp()->m_pMainWnd))->m_ComboBox ; // get pointer to combo from mainframe object
pCombo->ResetContent() ;
// add the items here...
}
}


Its a bit rough and done from memory so it may be a little bit buggyBig Grin | :-D

Roger Allen
Sonork 100.10016
GeneralRe: Toolbars and MDI Apps Pin
Chambers21-Nov-01 7:58
Chambers21-Nov-01 7:58 
GeneralUsing Word Doc on CHtmlView. Pin
21-Nov-01 5:35
suss21-Nov-01 5:35 
GeneralContext Menus w/o Doc/View Pin
John Clump21-Nov-01 4:28
John Clump21-Nov-01 4:28 
GeneralRe: Context Menus w/o Doc/View Pin
Roger Allen21-Nov-01 7:25
Roger Allen21-Nov-01 7:25 
GeneralCome on you all, WMI can't be the only solution!!!!! Pin
Tommy H D Svensson21-Nov-01 3:42
Tommy H D Svensson21-Nov-01 3:42 
GeneralI have an error while executing Win32 Release application! Pin
mabang21-Nov-01 2:52
mabang21-Nov-01 2:52 
GeneralRe: I have an error while executing Win32 Release application! Pin
Bernhard21-Nov-01 3:24
Bernhard21-Nov-01 3:24 
GeneralI want to recommend an application Pin
er21-Nov-01 1:39
er21-Nov-01 1:39 
GeneralRe: I want to recommend an application Pin
21-Nov-01 3:48
suss21-Nov-01 3:48 
QuestionHow to draw a part of Desktop Pin
21-Nov-01 1:38
suss21-Nov-01 1:38 
AnswerRe: How to draw a part of Desktop Pin
Roger Allen21-Nov-01 7:29
Roger Allen21-Nov-01 7:29 
GeneralCWinApp::OnIdle in Dll - is NOT called Pin
DataPrasad21-Nov-01 1:05
DataPrasad21-Nov-01 1:05 
GeneralRe: CWinApp::OnIdle in Dll - is NOT called Pin
Michael Dunn21-Nov-01 6:20
sitebuilderMichael Dunn21-Nov-01 6:20 
GeneralDialog buttons Pin
et20-Nov-01 23:17
et20-Nov-01 23:17 
GeneralRe: Dialog buttons Pin
Christian Graus21-Nov-01 0:39
protectorChristian Graus21-Nov-01 0:39 
GeneralScope of try...catch constructions (over threads) Pin
EiSl20-Nov-01 21:42
EiSl20-Nov-01 21:42 
GeneralRe: Scope of try...catch constructions (over threads) Pin
Joaquín M López Muñoz20-Nov-01 23:11
Joaquín M López Muñoz20-Nov-01 23:11 

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.