Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » [WIN] Chameleon - blocking style changes  () 1 Vote
Re: [WIN] Chameleon - blocking style changes [message #41644 is a reply to message #41633] Tue, 07 January 2014 16:04 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 326
Registered: July 2009
Senior Member
kropniczki wrote on Mon, 06 January 2014 19:09

I tried overriding WndProc to react to WM_THEMECHANGED and WM_SYSCOLORCHANGE



Thank you very much Edson. I just added one more message that should be ignored and it looks that changes are blocked.

LRESULT Kiosk::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
	switch(message) {
		case WM_SYSCOLORCHANGE:
		case WM_THEMECHANGED:
		case WM_SETTINGCHANGE:
			return FALSE;
	}
	return TopWindow::WindowProc(message, wParam, lParam);
}

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Why does ChPaint(..,img,...) have different behaviour with DRAW / PAINTER
Next Topic: Button font
Goto Forum:
  


Current Time: Fri May 10 12:37:15 CEST 2024

Total time taken to generate the page: 0.01298 seconds