My main app consists of a resizableWindow which sets a documentWindow as its content component. The documentWindow class has a menubar set to it. In order to have this menubar appear I had to take out the Resize() and Paint() methods from my documentWindow derived class. (why do I get the feeling that this is part of the problem…). Anyway this all works fine apart from the following anomalies:
Trying to move my main window by dragging the title bar results in the menubar and title bar disappearing. In order for them to show up again I need to resize the window by dragging one of its corners.
My documentWindow derived class has a popup menu if I right-click anywhere on the application background. Same thing happens if I try to access that, i.e., the titlebar and menubar disappear.
I realise that it must have something to do with my taking out the resize and paint methods but leaving them in prevents my menubar from being drawn. Can anyone shed any light on the situation?