git-svn-id: svn://ultimatepp.org/upp/trunk@556 f0d560ea-af0d-0410-9eb7-867de7ffcac7

This commit is contained in:
cxl 2008-10-20 18:58:33 +00:00
parent 3327d9393f
commit ae74b178e8
3 changed files with 3 additions and 2 deletions

View file

@ -136,6 +136,8 @@ class GLCtrl : public ParentCtrl {
virtual void State(int reason);
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
virtual Image MouseEvent(int event, Point p, int zdelta, dword keyflags);
GLPane() { NoWantFocus(); }
};
friend class GLCtrl;

View file

@ -13,7 +13,6 @@ GLCtrl::GLCtrl()
hRC = NULL;
glpane.ctrl = this;
Add(glpane.SizePos());
NoWantFocus();
}
GLCtrl::~GLCtrl()

View file

@ -23,6 +23,7 @@ GLCtrl::GLPane::GLPane(int depthsize, int stencilsize, bool doublebuffer,
StencilSize = stencilsize;
DoubleBuffering = doublebuffer;
NumberOfSamples = numberofsamples;
NoWantFocus();
} // END Constructor class GLCtrl::GLPane
/////////////////////////////////////////////////////////////////////////////////////////
@ -201,7 +202,6 @@ GLCtrl::GLCtrl(int depthsize, int stencilsize, bool doublebuffer, bool multisamp
{
pane.ctrl = this;
Add(pane.SizePos());
NoWantFocus();
}
#endif