Hi
I have a problem, which seems very odd to me
I have a class, derived from wxWindow. It has a private bool which is set in the constructor to false.
private:
bool blMyBool;
which is set in a function to true and checked in OnPaint
void MyClass::SetMyBool(bool aBool)
{
blMyBool=true;
wxPaintEvent pe;
OnPaint(pe); Refresh();};
void MyClass::OnPaint(wxPaintEvent& event)
{
if(MyBool)
wxMessageBox("MyBool = true");
};
When I call OnPaint directly, the MessageBox appears, but not when I call Refres(). I don`t have much experience with wxWindows ... so I hope somebody here can help me ;)
cu ernii |