Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Sachin Gupta
|
Sep 6, 2006 - 11:03 AM
|
We use ProfUIS toolbars in our ActiveX control. The ActiveX control is used within Internet Explorer.
The toolbar has a "Print" button. On click of this "Print" button, we show a "Confirm Print Dialog" to the user. Sometimes, this "Confirm Print Dialog" overlaps the toolbar. When the user dismisses the "Confirm Print Dialog" the toolbar doesn’t get repainted again and parts of the toolbar remain in white color.
By moving the mouse over the toolbar the toolbar repaints again. Also if the user minimizes and maximizes the Internet Explorer window again the toolbar repaints.
Please suggest us a way to repaint the toolbar when another window overlaps its.
Thanks,
|
|
Technical Support
|
Sep 7, 2006 - 12:03 PM
|
Please try the following: 1) Initialize some timer when the control’s window is created: SetTimer( 345, 100, NULL ); 2) Handle this timer: CWinThread * pWinThread = ::AfxGetThread();
ASSERT_VALID( pWinThread );
pWinThread->OnIdle( 0 ); This code will emulate the standard MFC idle time processing and all the windows should become updated correctly. PS Your question relates to Prof-UIS.
|
|