PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Brian Alvarez on August 02, 2016, 03:01:20 AM

Title: Toolbar redraw
Post by: Brian Alvarez on August 02, 2016, 03:01:20 AM
 Hello, i have a transparent toolbar and i want it to reflect the color of the dialog behind it, but currently i have to resize the dialog so the toolbar reflect the change.

How can i do it?

FF_Control_Redraw(HWND_DIALOG) doesnt seem to work...

Thanks. :)
Title: Re: Toolbar redraw
Post by: Paul Squires on August 02, 2016, 05:27:57 PM
Quote from: Brian Alvarez on August 02, 2016, 03:01:20 AM
Hello, i have a transparent toolbar and i want it to reflect the color of the dialog behind it, but currently i have to resize the dialog so the toolbar reflect the change.

How can i do it?

FF_Control_Redraw(HWND_DIALOG) doesnt seem to work...

Thanks. :)

Instead of passing the handle to the Form, HWND_DIALOG, try passing the handle of the ToolBar. HWND_DIALOG_TOOLBAR1  ?
Title: Re: Toolbar redraw
Post by: Brian Alvarez on August 02, 2016, 05:53:32 PM

I thought it was automatic, i ended up using this:

Call FF_Control_Redraw(GetDlgItem(HWND_MAINFORM, IDC_MAINFORM_TOOLBAR1))

All i could find was the IDC, the HWND wasnt stated in the list of handles. :)

Thanks Paul. :)