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 #41633 is a reply to message #41544] Mon, 06 January 2014 19:09 Go to previous messageGo to previous message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
I tried overriding WndProc to react to WM_THEMECHANGED and WM_SYSCOLORCHANGE
LRESULT MyApp::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
	switch(message) {
		case WM_SYSCOLORCHANGE:
		case WM_THEMECHANGED:
			PostCallback(THISBACK(HandleChanges));
			return FALSE;
	}
	return TopWindow::WindowProc(message, wParam, lParam);
}
...

void MyApp::HandleChanges()
{
    RefreshMyAppStyle(); // call custom chameleon style implementation
    RefreshLayoutDeep(); // update GUI look
}


I got mixed results. It works fine when waking up from standby mode, fails miserably when switching to a high contrast theme in Windows 8.1, although style gets perfectly restored when switching back from high contrast theme to previous one.

That's all I got.
tks.
 
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 01:09:00 CEST 2024

Total time taken to generate the page: 0.02443 seconds