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 » U++ Widgets - General questions or Mixed problems » Toolbar clears after ESC key [solved, it`s the bug in user code]
Re: Toolbar clears after ESC key [bug?] [message #12084 is a reply to message #12082] Wed, 10 October 2007 19:03 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1210
Registered: August 2007
Senior Contributor
Quote:

; in MainWindow::OnUpdateToolbar, but in some repainting cases toolbar just copies it`s icons twice or more times.


Hmm, do you use a key hook (InstallKeyHook())? I've encountered the very same problem, and it was only because of the wrong return value. If you use a global keyhook, make sure that it returns true. and before it, make sure that your callback passes the variables to the default ctrl. Eg.

static bool CtrlKeyHook(Ctrl* ctrl, dword key, int count) { /* your code goes here... */ ctrl->Key(key, count); return true; }

As in the above snippet.


[Updated on: Wed, 10 October 2007 19:06]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: ButtonOption has no disabled state? [solved w/ ::Disable()]
Next Topic: Having my HWND and eating it, too...
Goto Forum:
  


Current Time: Mon Jun 09 05:10:06 CEST 2025

Total time taken to generate the page: 0.04155 seconds