• Welcome to PlanetSquires Forums.
 

Mouse Click fire a window refresh to many other windows

Started by Eros Olmi, December 22, 2022, 06:28:42 PM

Previous topic - Next topic

Eros Olmi

Ciao Paul,

I've noticed that mouse left click in any part of WinFbe seems firing refresh to many other client windows in other application open in Windows desktop

For example I've a background window of Notepad++ that refresh every time I click inside any WinFbe window area. The same with other application like Windows Explorer

Attached a short video showing Notepad++ refreshing when left click on WinFbe.

Ciao
Eros

Paul Squires

Thanks Eros, I will take a look at this over the holidays to see if I can find out why this would happen.
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

SeaVipe

Hi Paul, I too have that connection to Notepad++ as displayed in the clip from Eros. Scintilla?
Clive Richey

Paul Squires

Hi guys,

I finally tracked down the reason for this screen refresh issue. It is because I was redrawing a control window handle that could have a value of 0 (zero). Of course, a zero value would then represent the Windows Desktop thereby causing a full desktop refresh. This would result in other applications like NotePad++ (and even Windows Notepad itself) to refresh its text contents.

Here is the code with the fixed source. The fix will be in version 3.0.7.

function killAllPopupMenus() as boolean
   killPopupSubMenus()
   killPopupMenus()
   gMenuLastCurSel = -1
   gPrevent_WM_NCACTIVATE = false
   ' unhighlight any previous hot menubar button
   dim as HWND hCtrl = ghWndActiveMenuBarButton
   ghWndActiveMenuBarButton = 0

' I ADD THE FOLLOWING "IF" TEST RATHER THAN BLINDLY CALLING REDRAW ON THE VARIABLE
   if hCtrl then AfxRedrawWindow(hCtrl)

   return true
end function
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer