May 10th, 1999, 11:48 AM
I have a simple MFC SDI app that I have a couple of problems with. The app is a demonstration of a solution to the Knight's Tour. It uses onDraw to draw a bitmap of the chessboard to a window and then successively fills in a number in each square. One problem is that when I select any top level menu it covers part of the window (as expected) when the menu is exited only the bitmap that was under the menu is redrawn not the text. Conversely I have a dialog box mapped to OnRButtonDown and when it exits both the bitmap and the text are redraw. How can I make the menu behave like the dialog box? Along the same line, when I call my dialog box I first Kill a timer that pauses the program execution. I want to do the same thing any time one of the top level menus is selected. I've tried overriding OnInitMenu and OnInitMenuPopup but I can only get the functions to be called if I override them in CMainFrame, I want to override them in the view.
Any help would be appreciated.
David Churchill
Any help would be appreciated.
David Churchill