How to change the status bar message/font color of a dialog window

I can hardly figure out Notepad++ how to change its status bar message/font color of the find dialog window.
All I found was
1
2
3
4
5
6
7
void FindReplaceDlg::setStatusbarMessage(const generic_string & msg, FindStatus staus) {
 //... 
	if (isVisible()) {
		_statusbarFindStatus = staus;
		_statusBar.setOwnerDrawText(msg.c_str());
	}
     //.. 

and the invocation leads to:

1
2
3
4
5
6
7
8
9
bool StatusBar::setOwnerDrawText(const TCHAR* str)
{
	if (str != nullptr)
		_lastSetText = str;
	else
		_lastSetText.clear();

	return (::SendMessage(_hSelf, SB_SETTEXT, SBT_OWNERDRAW, reinterpret_cast<LPARAM>(_lastSetText.c_str())) == TRUE);
}


honestly I barely have knowledge on SendMessage() usage, even if this give good information:

https://docs.microsoft.com/en-us/windows/win32/winmsg/about-messages-and-message-queues

How is actually to change the Find dialog status bar message color?
Any helpful guidance is gratified. Thanks in advance
Last edited on
I am a little out of the loop but the way it used to work was you made a font object and in there you can define its color, which font (eg courier new or system or whatever), size, and so on, and you apply that to the object in question (status bar's font, for example). If you don't have a font object it uses the window's default for that type of widget, which I think is tied to your current theme these days. I do not know if there is a way to get/set the existing font object without applying your own, you can poke around to see. It will be trivial to do once you find the command to change it or once you over-ride it and have your own variable.
Topic archived. No new replies allowed.