Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: i need to RelayEvent,but cannot override PreTranslateMessage.... Pin
Roger Allen17-Nov-08 12:21
Roger Allen17-Nov-08 12:21 
GeneralRe: i need to RelayEvent,but cannot override PreTranslateMessage.... Pin
kaviniswell18-Nov-08 22:41
kaviniswell18-Nov-08 22:41 
GeneralRe: i need to RelayEvent,but cannot override PreTranslateMessage.... Pin
dupenf118-Nov-08 14:25
dupenf118-Nov-08 14:25 
GeneralRe: i need to RelayEvent,but cannot override PreTranslateMessage.... Pin
kaviniswell18-Nov-08 22:35
kaviniswell18-Nov-08 22:35 
GeneralRe: i need to RelayEvent,but cannot override PreTranslateMessage.... Pin
dupenf118-Nov-08 22:43
dupenf118-Nov-08 22:43 
GeneralRe: i need to RelayEvent,but cannot override PreTranslateMessage.... Pin
kaviniswell18-Nov-08 23:01
kaviniswell18-Nov-08 23:01 
QuestionDecryption question Pin
monsieur_jj16-Nov-08 20:49
monsieur_jj16-Nov-08 20:49 
QuestionDose someone be familar with cgfxoutbarctrl? Pin
Meng Jun16-Nov-08 19:54
Meng Jun16-Nov-08 19:54 
I have downdload the the fantastic control named cgfxoutbarctrl,
at http://www.codeguru.com/controls/outbar.shtml[^],now I try to chang the right view of CGfxSplitterWnd(derived from CSplitterWnd).But exception occurs when
runing it and the dialog displays "Unhandled exception in filetitle.exe(MFC42D.DLL):0x0000005 Access Violation".I found the hWnd=??? in the class pointer during debug.
Fllowing is my own code ,please tell me what's wrong with it and how to correct,thanks!!
<br />
void CMySplitterWnd::ChangeView(int row, int col, CRuntimeClass* pViewClass)<br />
{<br />
	ASSERT(pViewClass->IsDerivedFrom(RUNTIME_CLASS(CView)));<br />
<br />
	CView* pView = STATIC_DOWNCAST(CView, GetPane(row, col));<br />
	CFrameWnd* pFrame = pView->GetParentFrame();<br />
	ASSERT(pFrame);<br />
<br />
	// set up create context to preserve doc/frame etc.<br />
	CCreateContext cc;<br />
	memset(&cc, 0, sizeof(cc));<br />
	cc.m_pNewViewClass = pViewClass;<br />
	cc.m_pCurrentDoc = pView->GetDocument();<br />
	cc.m_pNewDocTemplate = cc.m_pCurrentDoc ?<br />
		cc.m_pCurrentDoc->GetDocTemplate() : NULL;<br />
	cc.m_pCurrentFrame = pFrame;<br />
<br />
	DeleteView(row, col);					 // delete old view<br />
	TRACE("Rows=%d,Columns=%d",GetRowCount,GetColumnCount);<br />
	VERIFY(CreateView(row, col,			 // create new one<br />
		pViewClass,<br />
		CSize(0,0),								 // will fix in RecalcLayout<br />
		&cc));<br />
<br />
	RecalcLayout();							 // recompute layout <br />
<br />
	// initialize the view<br />
	CWnd* pWnd = GetPane(row, col);<br />
	if (pWnd)<br />
		pWnd->SendMessage(WM_INITIALUPDATE);<br />
}<br />
<br />

QuestionHow can save COLORREF value in access database ? Pin
Le@rner16-Nov-08 19:52
Le@rner16-Nov-08 19:52 
AnswerRe: How can save COLORREF value in access database ? Pin
MANISH RASTOGI16-Nov-08 20:04
MANISH RASTOGI16-Nov-08 20:04 
AnswerRe: How can save COLORREF value in access database ? Pin
Saurabh.Garg16-Nov-08 20:16
Saurabh.Garg16-Nov-08 20:16 
AnswerRe: How can save COLORREF value in access database ? Pin
CPallini16-Nov-08 21:38
mveCPallini16-Nov-08 21:38 
Questionset monitor frequency Pin
ani_ikram16-Nov-08 19:33
ani_ikram16-Nov-08 19:33 
AnswerRe: set monitor frequency Pin
Hamid_RT16-Nov-08 20:41
Hamid_RT16-Nov-08 20:41 
QuestionCreating a setup for installtion of MFC Application Pin
Dhiraj kumar Saini16-Nov-08 19:30
Dhiraj kumar Saini16-Nov-08 19:30 
AnswerRe: Creating a setup for installtion of MFC Application Pin
santhoshv8416-Nov-08 19:41
santhoshv8416-Nov-08 19:41 
AnswerRe: Creating a setup for installtion of MFC Application Pin
ani_ikram16-Nov-08 19:48
ani_ikram16-Nov-08 19:48 
AnswerRe: Creating a setup for installtion of MFC Application Pin
Hamid_RT16-Nov-08 20:37
Hamid_RT16-Nov-08 20:37 
QuestionAccessing column data from multiple tables in oracle 10g to a single form of SDI Application Pin
Divya Lalwani16-Nov-08 19:22
Divya Lalwani16-Nov-08 19:22 
QuestionExecuting program error. Pin
Nikesh Jagtap16-Nov-08 18:47
Nikesh Jagtap16-Nov-08 18:47 
QuestionRe: Executing program error. Pin
David Crow17-Nov-08 3:27
David Crow17-Nov-08 3:27 
QuestionWrite data n PDF and Excel Pin
MsmVc16-Nov-08 17:18
MsmVc16-Nov-08 17:18 
AnswerRe: Write data n PDF and Excel Pin
Hamid_RT16-Nov-08 17:56
Hamid_RT16-Nov-08 17:56 
QuestionIncorrect binary path set during Win32 Service installation Pin
Member 569752116-Nov-08 16:00
Member 569752116-Nov-08 16:00 
Questionminimum spanning tree Pin
Sadaiyappan16-Nov-08 9:54
Sadaiyappan16-Nov-08 9:54 

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.