Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » Painting issue when using toolbar in an ActiveX control Collapse All
Subject Author Date
Sachin Gupta Sep 7, 2006 - 9:10 PM

I am moving this thread from Elegant Grid Support Forum to this forum.

The below suggestion did not work for us. Even after sending the Idle message, the toolbar doesnt paint itself again.
We also tried sending a OnSize, OnPaint, MoveWindow message, but none of them worked.

The only things that works is minimizing and the maximizing the whole Internet Explorer window.

If required we can also do a WebEx to expedite this case.

Please help.

Thanks,
Sachin

--------------------------------------------------------------------------------

Dear Sachin Gupta,

You received a reply to your message in the forum ’Elegant Grid Support Forum’ and we are happy to notify you as you requested.

Elegant Grid Support Forum
Subject: Re:Painting issue when using toolbar in an ActiveX control
Author: Technical Support
E-mail: support@prof-uis.com
Please try the following:

1) Initialize some timer when the controlaˆ™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.

--------------------------------------------------------------------------------

Author: Sachin Gupta
Subject: Painting issue when using toolbar in an ActiveX control 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 doesnaˆ™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 8, 2006 - 11:54 AM

Please contact us via e-mail at support@prof-uis.com to set the date and time of the WebEx meeting.