I now have a full-screen display. When I want to move the mouse to the top area of the screen when the screen is full, the menu is displayed. When I move the mouse away, the menu disappears again. How do I implement this operation?
With two windows
One full screen, one with only one menu
The menu window is superimposed on the full screen window, and it is determined whether the menu window is displayed in the onmousemove event of the full screen window
Hide the menu window in the menu window's onmouseleave event
By judging the coordinate position of the mouse, if it is in the area required above, the menu is displayed, and the code for the menu display: AfxGetMainWnd ()-> SetMenu (specified menu resource); otherwise, the menu is not displayed, the code:
AfxGetMainWnd ()-> SetMenu (NULL);
In this full-screen process, I realized that the client area was expanded to the entire screen size, but the question now is how to display that menu bar and how the menu appears at the top position. It seems that there is no such function to set the menu position. If you set up another menu window like the solo method, how to set its position?