Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Paint Trouble with Panes, ...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Paint Trouble with Panes, ...

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: Paint Trouble with Panes, ...
    Posted: 17 May 2006 at 8:04am
Hello,

I've some apint trouble, if a workerthread change some on the panes.
On the gui i press a online button. This button send a cmd to a workerthread. after short time the workerthread send with SendMessage that online is ok. in the Receive function a other pane will be show
CMainFrame::ShowPane(int nID)
{
 CXTPDockingPane *pWndPane = GetDockingPaneManager()->FindPane(nID);

if (pWndPane)
  GetDockingPaneManager()->ShowPane(pWndPane);
}

before worker thread send ok , a toolbar button is pressed an open a modal dialog.
after dialog is open there are this paint problem.

also we can show a other pane from a dialog ?

    Jimmy

Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2006 at 8:20am
For show pane from Dialog, here is a sample
compile, start, press [T] button in toolbar.

press button1, button2, button3, button1, ...

2006-05-17_081956_GUI_VisualStudio7.zip
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2006 at 11:06am

Hi,

Add

AfxGetApp()->OnIdle(0);

after m_pMainFrame->OnShowView(xxx);

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.