Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modal, Modeless, Message Madness Pin
Chris Losinger10-Jan-02 8:11
professionalChris Losinger10-Jan-02 8:11 
GeneralRe: Modal, Modeless, Message Madness Pin
#realJSOP10-Jan-02 8:42
professional#realJSOP10-Jan-02 8:42 
GeneralDIB Wierdness Pin
#realJSOP10-Jan-02 7:09
professional#realJSOP10-Jan-02 7:09 
GeneralRe: DIB Wierdness Pin
Joaquín M López Muñoz10-Jan-02 9:20
Joaquín M López Muñoz10-Jan-02 9:20 
GeneralVisual C++ Pin
Rajveer10-Jan-02 7:04
Rajveer10-Jan-02 7:04 
GeneralRe: Visual C++ Pin
Wolfram Steinke10-Jan-02 7:43
Wolfram Steinke10-Jan-02 7:43 
General2 issues... Pin
BlackSmith10-Jan-02 4:51
BlackSmith10-Jan-02 4:51 
GeneralProblems with Ms Word and Automation Pin
Braulio Dez10-Jan-02 4:16
Braulio Dez10-Jan-02 4:16 
Hi,

I´m using Automation to have in one splitter window a Word window and in the right pane some buttons to add graphics tables...

The problem comes on XP, when I close that window, I get some strange error when it´s close ( OnSize is called after the window is destroyed), here is the code i call
void CReportFrame::OnClose() 
{
    TRY {
	// must destroy report bar manually
	CWnd* wnd = m_wndSplitter.GetPane(0, 0);
	wnd->DestroyWindow();
	delete wnd;

	// handle inplace Word view
	CReportDoc* pDoc = GetReportDoc();
	COleClientItem* pItem = pDoc->GetPrimarySelectedItem(GetReportWordView());
	if (pItem != NULL) {
	    pItem->Delete();
	    //delete pItem;
	}

	CFrameWnd::OnClose();

	delete pItem;
    } CATCH(CException, e) {
	AfxMessageBox("CReportFrame::OnClose : exception caught.");
	ASSERT(false);
	e;
    } END_CATCH;
}


Thanks in advance, Bye !
Braulio
GeneralRe: Problems with Ms Word and Automation Pin
Ernest Laurentin10-Jan-02 4:29
Ernest Laurentin10-Jan-02 4:29 
GeneralCalling CPropertSheet from and explicity linked Extension DLL Pin
Asim Hussain10-Jan-02 4:09
Asim Hussain10-Jan-02 4:09 
GeneralRe: Calling CPropertSheet from and explicity linked Extension DLL Pin
Roger Allen10-Jan-02 6:17
Roger Allen10-Jan-02 6:17 
Generalproblem with WM_MOUSEWHEEL Pin
Anders Molin10-Jan-02 3:34
professionalAnders Molin10-Jan-02 3:34 
GeneralRe: problem with WM_MOUSEWHEEL Pin
BlackSmith10-Jan-02 4:53
BlackSmith10-Jan-02 4:53 
GeneralRe: problem with WM_MOUSEWHEEL Pin
Michael P Butler10-Jan-02 5:23
Michael P Butler10-Jan-02 5:23 
GeneralRe: problem with WM_MOUSEWHEEL Pin
Anders Molin10-Jan-02 5:54
professionalAnders Molin10-Jan-02 5:54 
GeneralQuestion on Hook or API Interception Pin
gordingin10-Jan-02 3:22
gordingin10-Jan-02 3:22 
GeneralRe: Question on Hook or API Interception Pin
Ernest Laurentin10-Jan-02 3:39
Ernest Laurentin10-Jan-02 3:39 
QuestionDynamic handlers? Pin
Fredrik Skog10-Jan-02 3:16
Fredrik Skog10-Jan-02 3:16 
AnswerRe: Dynamic handlers? Pin
Thomas Ascher10-Jan-02 3:39
Thomas Ascher10-Jan-02 3:39 
Generalflickerfree dialog painting.. Pin
Bernhard10-Jan-02 2:55
Bernhard10-Jan-02 2:55 
GeneralRe: flickerfree dialog painting.. Pin
Roger Allen10-Jan-02 6:11
Roger Allen10-Jan-02 6:11 
GeneralRe: flickerfree dialog painting.. Pin
Bernhard10-Jan-02 20:27
Bernhard10-Jan-02 20:27 
QuestionAnybody who knows a tools for downloads site of CGI? Pin
LeighSword10-Jan-02 2:14
LeighSword10-Jan-02 2:14 
AnswerRe: Anybody who knows a tools for downloads site of CGI? Pin
markkuk10-Jan-02 20:07
markkuk10-Jan-02 20:07 
GeneralRe: Anybody who knows a tools for downloads site of CGI? Pin
LeighSword14-Jan-02 13:23
LeighSword14-Jan-02 13:23 

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.