How to change text colour of main frame caption when the frame window is partially hidden behind other windows?

  • Thread starter Thread starter Yan Yang
  • Start date Start date
Y

Yan Yang

Guest
I changed the text colour of the main frame caption from black to white in ribbon interface as suggested by RLWA32 in the link, setting the text colour in DrawTextOnGlass() method on a class derived from CMFCVisualManagerOffice2007.

In the menu/toolbar interface, when the window is active (on the front), the background of the main frame caption is blue, and the text colour of the capiton is white. When the window is not active (partially hidden behind other windows), the background of the caption is white, and the text colour of the caption is grey, so the text is visible.

However in the ribbon interface, when the window is active, the background of the caption is blue, and the text colour of the caption is white which is I just changed. When the window is partially behind other windows, the caption backgound is white and the text colour of the caption is also white, so I cannot see any text on the caption at all.

Could you please let me know how to change the text colour of the caption when the window is hidden by other windows?

Thanks in advance.

Continue reading...
 
Back
Top