U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Menus&Toolbars » bug in toolbar
Re: bug in toolbar [message #43981 is a reply to message #43969] Sat, 06 December 2014 18:27 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
kropniczki wrote on Tue, 02 December 2014 03:43
Patching Win32Proc.cpp line #71 with
bool GetMouseLeft()   { AvoidPaintingCheck__(); return !!(GetKeyState(VK_LBUTTON) & 0x8000); }

resolved the problem, in spite of having added loops like
for(int i = 0; i < 10000; i++)
    GetMouseLeft();

to both ToolButton::Paint and Button::Paint. In other words, I was able to 'switch' problem on/off just by removing/adding patch above, respectively.

Just don't know about eventual (unforeseen) consequences (if any) of patch to Upp code as a whole...

tks!


Ha! That actually makes some sense: It is possible that something in your Windows setup routes GetKeyState through Window proc for some reason...

Thanks!

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Floating context menu
Next Topic: Menu and UHD on Windows
Goto Forum:
  


Current Time: Sun Sep 13 19:03:10 GMT+2 2026

Total time taken to generate the page: 0.01260 seconds