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

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: 1284
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: Tue Oct 06 10:32:08 GMT+2 2026

Total time taken to generate the page: 0.02372 seconds