Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can a Manged Control be used in a CScrollView Window? Pin
Mark Salsbery3-May-07 13:40
Mark Salsbery3-May-07 13:40 
GeneralRe: Can a Manged Control be used in a CScrollView Window? Pin
earlgraham4-May-07 12:00
earlgraham4-May-07 12:00 
GeneralRe: Can a Manged Control be used in a CScrollView Window? Pin
Mark Salsbery4-May-07 13:02
Mark Salsbery4-May-07 13:02 
QuestionMFC State Question (Calling MFC UI objects from non-UI objects) Pin
mevatron13-May-07 12:09
mevatron13-May-07 12:09 
QuestionRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery3-May-07 12:39
Mark Salsbery3-May-07 12:39 
AnswerRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
mevatron14-May-07 3:21
mevatron14-May-07 3:21 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery4-May-07 5:15
Mark Salsbery4-May-07 5:15 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
mevatron14-May-07 11:24
mevatron14-May-07 11:24 
>Has the Windows object (HWND) been created for m_wndStatusBar?
I believe so, it gets called in OnCreate

int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)<br />
{<br />
	if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1)<br />
		return -1;<br />
<br />
	if (!m_wndStatusBar.Create(this) ||<br />
		!m_wndStatusBar.SetIndicators(indicators,<br />
		  sizeof(indicators)/sizeof(UINT)))<br />
	{<br />
		TRACE0("Failed to create status bar\n");<br />
		return -1;      // fail to create<br />
	}<br />
<br />
	UpdateStatusBar("Camera Connected...");<br />
<br />
	return 0;<br />
}


The hardware controller is actually a high speed camera that I'm talking to. The double Attach call is due to the fact that I have two types of Observers incoming, and I just used function overloading to have it pick the correct observer list to stick it into.

void CCameraController::Attach(CFrameGrabberObserver* pObserver)
void CCameraController::Attach(CCameraErrorObserver* pObserver)

Thanks again for the help!

-Will
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery4-May-07 11:39
Mark Salsbery4-May-07 11:39 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
mevatron15-May-07 8:08
mevatron15-May-07 8:08 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery5-May-07 8:21
Mark Salsbery5-May-07 8:21 
QuestionHow to read Date types from a MDB Pin
nukoso3-May-07 11:59
nukoso3-May-07 11:59 
QuestionProblem disabling IEEE 802.1x authentication when adding a network to WZC through WZC API Pin
ceNewbie3-May-07 8:17
ceNewbie3-May-07 8:17 
QuestionMCI source code Pin
YUANGE3-May-07 6:54
YUANGE3-May-07 6:54 
QuestionRe: MCI source code Pin
Maximilien3-May-07 7:13
Maximilien3-May-07 7:13 
AnswerRe: MCI source code Pin
Hamid_RT3-May-07 7:50
Hamid_RT3-May-07 7:50 
QuestionCTreeCtrl Pin
CDRAIN3-May-07 5:16
CDRAIN3-May-07 5:16 
AnswerRe: CTreeCtrl Pin
PJ Arends3-May-07 5:39
professionalPJ Arends3-May-07 5:39 
GeneralRe: CTreeCtrl Pin
CDRAIN3-May-07 6:10
CDRAIN3-May-07 6:10 
GeneralRe: CTreeCtrl Pin
PJ Arends3-May-07 14:06
professionalPJ Arends3-May-07 14:06 
GeneralRe: CTreeCtrl Pin
Maximilien3-May-07 6:35
Maximilien3-May-07 6:35 
GeneralRe: CTreeCtrl Pin
CDRAIN3-May-07 6:50
CDRAIN3-May-07 6:50 
QuestionHow to write into and read from a string table? Pin
TheInfernalCrow3-May-07 4:15
TheInfernalCrow3-May-07 4:15 
AnswerRe: How to write into and read from a string table? Pin
David Crow3-May-07 4:19
David Crow3-May-07 4:19 
QuestionRe: How to write into and read from a string table? Pin
TheInfernalCrow11-May-07 2:42
TheInfernalCrow11-May-07 2:42 

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.