Official eMule-Board: Splitter Invalidate - Official eMule-Board

Jump to content


Page 1 of 1

Splitter Invalidate Repaint Splitter (ServerWnd)

#1 User is offline   moloko+ 

  • ...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1209
  • Joined: 18-August 05

Posted 04 September 2008 - 06:22 AM

The splitter should be repainted when it is moved but seems it isn't always, so I added a call to invalidate once all other sizing has taken place. It seems to work as a patch.

CServerWnd::ReattachAnchors()
	AddAnchor(*debuglog,  CSize(0, thePrefs.GetSplitterbarPositionServer()), BOTTOM_RIGHT);

//MOD+ [FIX] Repaint Splitter - ReattachAnchors - invalidate
	m_wndSplitter.Invalidate();
//MOD-

	GetDlgItem(IDC_LOGRESET)->Invalidate();

0

#2 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 04 September 2008 - 05:27 PM

Maybe you'd better call

Invalidate();
UpdateWindow();

like in SharedFilesWnd.cpp after the resize...
0

#3 User is offline   moloko+ 

  • ...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1209
  • Joined: 18-August 05

Posted 04 September 2008 - 06:31 PM

Shouldn't need to because when the DefWindowProc handles the WM_PAINT message for ServerWnd it will call UpdateSplitterRange where the splitter is invalidated and then send a WM_PAINT to all child controls that have been invalidated.

Nice to see you back. :)
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users