| |

VerySource

 Forgot password?
 Register
Search
View: 1211|Reply: 5

Regarding the process of full screen display, move the mouse to the top, the menu appears, remove the mouse, the menu di

[Copy link]

2

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-7 10:30:01
| Show all posts |Read mode
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?
Reply

Use magic Report

0

Threads

17

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-3-27 18:15:01
| Show all posts
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
Reply

Use magic Report

0

Threads

20

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-3-27 21:00:01
| Show all posts
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);
Reply

Use magic Report

2

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-3-30 09:45:01
| Show all posts
tostealth:
How do I set the menu position to be displayed on top, just like work full screen, displayed on top?
Reply

Use magic Report

2

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-3-30 23:15:01
| Show all posts
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?
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-23 07:30:01
| Show all posts
You can put the menu in a toolbar, and then set the toolbar to show and hide
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list