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 » Layout and Paint event processing
Re: Layout and Paint event processing [message #14316 is a reply to message #14315] Fri, 22 February 2008 13:39 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
Registered: August 2007
Senior Contributor
You are right I Use MSVC too, but can't see dots unless I de-comment the Layout() line in the GLPaint in your example

In Win32GLCtrl.cpp, line 92:
LRESULT GLCtrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
	if(message == WM_PAINT && hDC && hRC) {
		wglMakeCurrent(hDC, hRC);
		GLPaint();
		SwapBuffers(hDC);
		wglMakeCurrent(NULL, NULL);
		PAINTSTRUCT ps;
		BeginPaint(GetHWND(), &ps);
		EndPaint(GetHWND(), &ps);
		return 0;
	}
	return DHCtrl::WindowProc(message, wParam, lParam);
}


It seems that Layout() is called AFTER GLPaint(). I'm not sure if this is intentional or a bug.


[Updated on: Fri, 22 February 2008 13:47]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Key in DropList cannot be same
Next Topic: window resized has no CALLBACK?
Goto Forum:
  


Current Time: Wed Jun 05 05:17:49 CEST 2024

Total time taken to generate the page: 0.01524 seconds